Page 1 of 1

Automatic Maintenance mode

Posted: Thu Dec 17, 2020 9:16 am
by coitop
Hello,

I was looking for a way to do the following:

When a host is DOWN (Unavailable to ping) for over a determined period of time (ex. 2 days), the host would automatically go into maintenance mode and not count in SLA reports for example (Because I know I can limit the alerts or not get more than 1 if the host is down, but the issue is not with the alerts).

Anyone has implemented this or knows a way?

Thanks in advance

Re: Automatic Maintenance mode

Posted: Fri Dec 18, 2020 10:31 am
by benjaminsmith
Hi @coitop,

A couple of options. This behavior can be scripted out using the API. The Objects endpoint will provide data has to the current state of the host and service along with the last time up and last time down. Taking this data into account you can then use the System endpoint to schedule downtime in the script. The API is fully documented in the GUI, go to Help > API Docs

Another option, but more manual, is to use the Mass Acknolweged component, this will allow you to schedule downtime for groups of hosts and services in non-ok states.

Hope that helps answer your question let me know if you need clarification on anything.

Best Regards,
Benjamin