> -----Original Message----- > From: Hari Sekhon [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 18, 2007 11:57 AM > To: Andreas Ericsson > Cc: Ton Voon; Marc Powell; Nagios-users@lists.sourceforge.net > Subject: Re: [Nagios-users] dont check service when host down > > Andreas Ericsson wrote: > > Hari Sekhon wrote: > >> This sounds like a great candidate for scalability to not check > >> services on downed hosts? > > Not really, because you have to have the resources for checking > > everything when nothing is down too. > No, I meant there is a situation where if you have a reduced retry check > interval, it would take more resources > for unnecessary checks since you are checking them more often. The
My reading of the code in base/checks.c (SECTION B3) is that if the host check returns non-OK, the service is immediately put into a hard state and no further retries are attempted. Nagios would then fall back to the normal_check_interval for the service check. Beyond the fact that services on down hosts are still checked, your scenario WRT retry_check_interval doesn't appear to happen. > Personally, if a service has a problem like it's down, I usually always > prefer to have it checked more frequently so I can see when it comes back > up > more quickly, especially if I am fiddling with stuff and have another > nagios screen up as well. If the service recovers but is still red and > you are fiddling, > it's possible you may tread on it thinking it's still broken. Just for clarification, as long as you're within max_check_attempts for your service, then nagios operates with your more frequent check interval. As soon as you reach max_check_attempts or your host check returns a non-OK state, the service falls back to normal_check_interval. -- Marc ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null