Page 1 of 1

change the status of a given service

Posted: Wed Jul 27, 2011 7:59 am
by elior.s
Hello,

My question is how i can change the status of a given service ?
I working with Nagios several years, at the past year we start to work without NSCA, so all out monitors are active and not passive.
The problem become after we start work with time periods which is not 24X7, and the services stay critical\Waring when is out of time period.

Regards

Re: change the status of a given service

Posted: Tue Aug 02, 2011 3:00 pm
by agriffin
It's not usually a good idea to change the status of a service. Instead, I would recommend scheduling downtime or acknowledging hosts and services that are down. This will tell Nagios not to worry about it and stop sending notifications for a while. If the downtime happens at regular intervals, you can schedule recurring downtime in Nagios XI. You'll need to buy a license to use XI with large installations, but it makes configuration much simpler. Otherwise, you can achieve something similar in Nagios Core using cron jobs & shell scripts. This page of the Nagios Core documentation will be very helpful if you choose to go that route.