Add and remove Host downtime by the existence of a file on the Host

Hi all,

the checkmk agent should be able to automatically add and remove the Host in check downtime by the availability of a specific file on the monitored Host.

When this file is present, the host is in downtime.
When this file is not present, the host is not in downtime.

Checkmk Downtime can already be set in the UI and also via API.
But for scripts which are already running on the hosts creating/removing a file would be easier than using the API…

Best Regards
Thomas

Well you can have a local check for checking the file availability …
then, a alert handler for that service that puts that host (or not) in downtime …

Just an idea!

Cheers,

2 Likes