Page 1 of 1

Service checks go off before host check even though host che

Posted: Tue Feb 23, 2016 2:35 pm
by cfgriffith
Is there a way for a service check to force a host check before emailing the contact list about the service being down.

I.E nagios detects a service down and then emails me about the service even though the host is down but nagios just hasn't seen that yet. I would rather after nagios see's that a service is down that it run a quick host check to see if the host is up before sending out any additional notifications. That way I just get a host down email rather than a bunch of service down emails before the host check is finally run.

Any input or advice is welcome.

Thanks,

Re: Service checks go off before host check even though host

Posted: Tue Feb 23, 2016 3:09 pm
by lmiltchev
Reducing the "noise" from notifications could be done by tweaking the "check_interval", "max_check_attempts", and "retry_interval" settings. Please, see the "Box293's explanation of the problem here:

https://support.nagios.com/forum/viewto ... 10#p103689

You could also you service dependencies to achieve your goal. You can have a PING or another check that is on the host with a lower check_interval than the other services and then the other services would depend on to know if it's up or down.

Read more about service dependencies here:
https://assets.nagios.com/downloads/nag ... ncies.html

Re: Service checks go off before host check even though host

Posted: Tue Feb 23, 2016 3:21 pm
by bwallace
There is not a way to have a particular check result trigger another check. Perhaps this is stating the obvious, but in addition to lmiltchev's suggestions you could just disable notifications for these service checks and only receive notifications when the host is down, as you could always review the status of the 'non-notification' service checks via the UI.

Re: Service checks go off before host check even though host

Posted: Thu Feb 25, 2016 4:53 pm
by cfgriffith
Awesome that answers my question. It is all a matter of tuning. Thanks.

Re: Service checks go off before host check even though host

Posted: Thu Feb 25, 2016 5:51 pm
by bwallace
Glad we were able to help. We'll lock this thread now and feel free to open another should you require assistance with anything else.