Hi community!
I’m trying to realize an event handler / event command to auto-acknowledge service problems for a defined time period.
The function is intended to inform the admins about a problem with their services by e-mail (hard state) and keeping the Icinga Web 2 dashboard clean (for defined services only).
Steps:
- Passive check result is sent from a Windows Server
- In case of a problem an e-mail is sent to the contact group (hard state)
- An acknowledgement is set for that service via API
I’ve found the script by Carsten aka Mikesch-mp (GitHub - Mikesch-mp/automatic_downtime: Icinga2 eventhandler Script to set an automatic downtime for a host and its services) that is very close to what I’m looking for.
But there are still questions:
- Is it possible to run the script for setting the acknowledgement on a satellite or master?
- Do I need to set the
command_endpoint
for that service manually?
If so, how do I decide which of the satellites in that zone or which of the masters should run the script and where should it be configured?
Thanks for any advice.
AlexR