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,
Service checks go off before host check even though host che
-
cfgriffith
- Posts: 83
- Joined: Tue Jan 15, 2013 4:22 pm
Re: Service checks go off before host check even though host
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
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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Service checks go off before host check even though host
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.
Be sure to check out the Knowledgebase for helpful articles and solutions!
-
cfgriffith
- Posts: 83
- Joined: Tue Jan 15, 2013 4:22 pm
Re: Service checks go off before host check even though host
Awesome that answers my question. It is all a matter of tuning. Thanks.
Re: Service checks go off before host check even though host
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.
Be sure to check out the Knowledgebase for helpful articles and solutions!