Page 1 of 2
Passive Checks NSCA and downtime
Posted: Mon Jul 29, 2013 4:43 am
by WillemDH
Hello,
We noticed that while a host and its services are in downtime, passive service will still receive checks (for example event logs). This is kind of annoying, as when the downtime ends, it seems like there is still a problem. Is there any way to disable passive checks temporary when the service is in downtime?
Grtz
Re: Passive Checks NSCA and downtime
Posted: Mon Jul 29, 2013 10:00 am
by lmiltchev
You can click on the service, and under the "Service Status Detail" go to the "Advanced" tab, then click on "Disable" button next to "Passive Checks". You can enable the "Passive checks" later when you need to.
Re: Passive Checks NSCA and downtime
Posted: Tue Jul 30, 2013 4:33 am
by WillemDH
Ok, but this is "much" work as we have multiple passive services for each host. There is no way to disable passive checks automatically at the moment the service goes into downtime?
In fact we use a powershell script on
http://blog.nwcoder.com/2012/09/schedul ... shell.html to put the host and its services into downtime.
As events from event logs get hrough even when the service is in downtime, this is pretty confusing afterwards.
Re: Passive Checks NSCA and downtime
Posted: Tue Jul 30, 2013 9:19 am
by yancy
WilliamDH,
Thanks for posting a link to that powershell script. Do you use that script when you need to put the host into scheduled downtime? Does the script take the host out of scheduled downtime? Or is that what you're trying to accomplish? Does downtime happen at a specific interval in you're environment or need to happen for example when a machine reboots?
Thanks,
-Yancy
Re: Passive Checks NSCA and downtime
Posted: Tue Jul 30, 2013 10:09 am
by WillemDH
In fact the script we use is based on the script I sent you. We used MOM and SCOM 2007 to monitor our servers the last 7 years. On every server there is a shortcut on the desktop that puts the server in maintenance mode. As people were used to put servers in maintenance mode (or downtime) with the shortcut, we needed the same for Nagios. The updated script we use has a dropdown where you can set the time the host and associated service are put in downtime and you also need to set a reason.
After the timeperiod specified is over, the host and services go out of downtime.
So now our problem is that the passive services, after the maintenance has been done on the server are stil in warning.., which is confusing as sometimes other colleagues clean up Nagios then the collegaues who did the maintenance.
Re: Passive Checks NSCA and downtime
Posted: Tue Jul 30, 2013 10:56 am
by yancy
WilliamDH,
What you're saying is that the host is in warning before scheduled downtime, but then also in warning after the scheduled downtime has finished? Would you prefer that the host go back to an "OK" status after the scheduled downtime has finished?
-Yancy
Re: Passive Checks NSCA and downtime
Posted: Tue Jul 30, 2013 11:04 am
by WillemDH
I'm not exactly saying that the host is is warning before the maintenance begins. This could be the case, but as I'm speaking of event logs, events getting through while in downtime seems strange to me. A solution could be to reset the health state of the passive service after downtime. I just need to find a script for that.
Re: Passive Checks NSCA and downtime
Posted: Tue Jul 30, 2013 11:51 am
by yancy
WilliamDH,
So you're saying that when the passive services are in downtime, they are still changing status?
-Yancy
Re: Passive Checks NSCA and downtime
Posted: Tue Jul 30, 2013 3:31 pm
by WillemDH
I thought so yes, but the way you ask me, makes me doubt....

I'll test this again when I have the time if you think this is not normal behaviour.
Re: Passive Checks NSCA and downtime
Posted: Tue Jul 30, 2013 4:37 pm
by yancy
WilliamDH,
Let us know if not so we can further diagnose.
-Yancy