Automatic "Check Now" after Downtime end

Hi,
I would like an automatic check, like a “Check Now” after the Downtime End status.

Is it possible?
Thanks a lot

Mario

icinga2 - The Icinga 2 network monitoring daemon (version: r2.14.2-1)
Ubuntu 22.04
Enabled features: api checker command graphite icingadb mainlog notification
Icinga Web 2 Version 2.12.1
Git commit cd2daeb2cb8537c633d343a29eb76c54cd2ebbf2
PHP Version 7.4.3-4ubuntu2.23
Git commit date 2023-11-15
Get Icinga Support
Icinga Community
Report a bug
Icinga Documentation
Loaded Libraries
icinga/icinga-php-thirdparty 0.12.1
icinga/icinga-php-library 0.14.1
Loaded Modules
businessprocess 2.5.0
director master
fileshipper 1.2.0
icingadb 1.1.3
graphite 1.2.4
incubator 0.20.0
migrate 2.12.1

Here are two ideas for you:

Write a script in for example python using eventstreams
For a downtime end event send a check now api request.
Disadvantages: time periods if used are most likely not checked for that

Alternative:
Use a notification rule for downtime end only
This executes a script that sends the check now api request. Real notifications should have a small delay so the check now triggers before any other notification that might be outdated by that time. Time periods can be used in a similar way as in the check execution.
Disadvantage: use notifications in a way they are not intended

1 Like