Passive Checks NSCA and downtime

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Passive Checks NSCA and downtime

Post 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
Nagios XI 5.8.1
https://outsideit.net
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Passive Checks NSCA and downtime

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Passive Checks NSCA and downtime

Post 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.
Nagios XI 5.8.1
https://outsideit.net
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Passive Checks NSCA and downtime

Post 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
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Passive Checks NSCA and downtime

Post 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.
Nagios XI 5.8.1
https://outsideit.net
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Passive Checks NSCA and downtime

Post 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
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Passive Checks NSCA and downtime

Post 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.
Nagios XI 5.8.1
https://outsideit.net
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Passive Checks NSCA and downtime

Post by yancy »

WilliamDH,

So you're saying that when the passive services are in downtime, they are still changing status?


-Yancy
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Passive Checks NSCA and downtime

Post 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.
Nagios XI 5.8.1
https://outsideit.net
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Passive Checks NSCA and downtime

Post by yancy »

WilliamDH,

Let us know if not so we can further diagnose.

-Yancy
Locked