Skip to main content

Parameters

Parameters

  • -c <path_file_conf> o --conf <path_file_conf>
Path to the plugin configuration file containing the configured parameters.
  • --as_discovery_plugin <1|0>
Run the plugin in discovery mode, it will show information about the execution, such as the number of machines.

In the configuration file (.conf) we will indicate the following parameters:

[CONF]
xen_server_ip = <server_ip>
user = <user>
password = <password>
temporary = <temporary files directory>

[PANDORA]
group = <group in which the agents will be placed>
logfile = <path of the log file created by the plugin>
interval = <interval in seconds at which plugin agents are created>
transfer_mode = <execution mode, the two possible options are local or tentacle>
tentacle_ip = <ip of tentacle, enter that of the Pandora machine in which you want to view the agents>
tentacle_client = <tentacle_client system command, default is tentacle_client>
tentacle_port = <tentacle port, default is 41121>
tentacle_opts = <additional options for transferring files to the indicated Tentacle server>
data_dir = <path of the folder where the agent XML will be created for local transfer mode (transfer_mode = local)>
id_as_name = < 1 if you want to use the SR id as the name of the SR agents (the alias will remain the name of the SR).)

[TUNING]
time_adjustment = <Time adjustment, enter in seconds>
scan_vm_ip = <Enable with 1 to check the virtual machine IP>
scan_all_vm = <Enable with 1 to enable scanning of all virtual machines>
scan_all_sr = <Enable with 1 to enable scanning of all SR agents>
scan_all_hosts = <Enable with 1 to enable scanning of all hosts>

[REJECT]
<name of the virtual machine, sr or host you want to disable> = 1

[RENAME ME]
<name of the virtual machine, sr or host that you want to rename> = <name that you want to put>

An example configuration file:

[CONF]
xen_server_ip=192.168.80.17
user=root
password=S4ToBh!
temporal=/tmp

[PANDORA]
group=Unknown
logfile=/tmp/pandora_xenserver.log
interval=300
transfer_mode=tentacle
tentacle_ip=172.42.42.101
tentacle_client=tentacle_client
tentacle_port=41121
tentacle_opts=
data_dir=/tmp/data_in
id_as_name = 1 

[TUNNING]
time_adjustment=10
scan_vm_ip=1
scan_all_vm=1
scan_all_sr=1
scan_all_host=1

[REJECT]
vm_test_env=1
sr_additional=1

[RENAME]
vm_env_prod_157=Prod157
vm_env_dev_157=Dev157

It must be taken into account that the interval that we define in this configuration file, which will be the interval of the agents that are generated when the plugin is executed, has to be equal to the execution interval of the plugin. If this is not the case, the modules of the generated agents will be set to "unknown" in the moments in which the agents try to collect the data but the plugin has not yet been executed.