Manual execution
The plugin execution format is as follows:
./pandora_opsgenie \
--agent <agent alias> \
--agentid <agent ID> \
--module <module name> \
--data <data value> \
--address <agent address> \
--apikey <Opsgenie API key> \
[--status <module status or MAX>] \
[--pandoraurl <Pandora FMS URL>] \
[--license <0 or 1>] \
[--user <Opsgenie user>] \
[--source <Opsgenie source>] \
[--verbose <0, 1 or 2>] \
[--logfile <log file path>]
[--max-retry <maximum number of retries>] \
[--wait-time <seconds between retries>]
For example:
./pandora_opsgenie \
--agent "Servidor_Madrid" \
--agentid "5012" \
--module "CPU Load" \
--data "_data_" \
--address "192.168.10.55" \
--apikey "1a2b3c4d-55ef-47d2-9f81-3b8c2d4e7f92" \
--status "CRITICAL" \
--pandoraurl "https://172.10.0.2.pandorafms.com/pandora_console/" \
--user "Pandora" \
--source "pandora" \
--verbose "1"