Automatic Maintenance mode

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
coitop
Posts: 52
Joined: Fri Jul 17, 2020 7:35 am

Automatic Maintenance mode

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Automatic Maintenance mode

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked