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
Passive Checks NSCA and downtime
Passive Checks NSCA and downtime
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Passive Checks NSCA and downtime
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Passive Checks NSCA and downtime
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.
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.
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Passive Checks NSCA and downtime
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
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
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.
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.
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Passive Checks NSCA and downtime
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
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
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.
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Passive Checks NSCA and downtime
WilliamDH,
So you're saying that when the passive services are in downtime, they are still changing status?
-Yancy
So you're saying that when the passive services are in downtime, they are still changing status?
-Yancy
Re: Passive Checks NSCA and downtime
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.
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Passive Checks NSCA and downtime
WilliamDH,
Let us know if not so we can further diagnose.
-Yancy
Let us know if not so we can further diagnose.
-Yancy