Introduction
This script is an internal Pandora FMS plugin designed to integrate events and alerts with Opsgenie, allowing the status of monitoring modules to be automatically synchronized with the incident management system.
The plugin receives information generated by Pandora FMS (agent, module, severity, data value, etc.) and uses it to create, update, and close alerts in Opsgenie, applying advanced control logic, automatic retries, and validation of the actual status of the alert.
In addition, it adds informational notes, direct links to the agent in Pandora FMS, and manages special statuses such as recovered alerts or modules related to the system license. The script also incorporates robustness mechanisms against transient API errors, URL validation, and configurable options to adjust priority, retry behavior, and logging level.
In short, this plugin acts as a reliable and automated connector between Pandora FMS and Opsgenie, ensuring that monitoring events generate consistent, up-to-date, and properly managed alerts on the incident platform.