Manual execution
The plugin execution format is as follows:
./pandora_haproxypandora_nginx --urls <HAProxyNGINX endpoint URLs comma-separated by commas> --user <username> --password <password> --ssl <true|false> --prefix <prefix> --transfer_mode <native|tentacle> --tentacle_ip <tentacle IP> --tentacle_port <tentacle port> --interval <interval> --allow_list <regex> --deny_list <regex> --monitor_frontendstimeout <true|false> --monitor_backends <true|false> --monitor_servers <true|falseseconds> --conf <path to configuration file> --conf_targetstargets_file <path to URLs file>
Examples:
to run thein simple mode
./pandora_haproxypandora_nginx --urls http://192.168.0.10:8404/stats,10/nginx_status,http://192.168.0.11:8404/stats11/nginx_status --user admin --password 12345 --ssl false --transfer_mode native --tentacle_ip 127.0.0.1 --tentacle_port 41121
to run thein advanced mode
./pandora_haproxypandora_nginx --conf /etc/pandora/haproxy.nginx.conf --conf_targetstargets_file /etc/pandora/haproxy_targets.nginx_targets.conf
The execution will return a JSON output with information about the run, and will generate anone XML file for everyper monitored agent (in tentacle mode) thatwhich will be sent to the Pandora FMS server using the transfer method configured.indicated in the configuration. In native mode the data is exposed in the monitoring_data field of the JSON output toso bethat it is consumed by the Discovery server.