Service Alerts being sent out when host is down

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Service Alerts being sent out when host is down

Post by rajasegar »

Box293 wrote:I meant to put Max Check Attempts - 2 for the host, I editied it so it makes sense.
I got what you meant. Even if I put 2 retries for host, the checks for log patterns will surely fail as it relies in a single poll.

I will write a wrapper command script that will ping the host and then execute the service if it is up.
This will take care of all situations regardless of poll and retry settings.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Service Alerts being sent out when host is down

Post by lmiltchev »

I will write a wrapper command script that will ping the host and then execute the service if it is up.
This will take care of all situations regardless of poll and retry settings.
Let us know how this is working out for you, and if it is save to lock this topic as resolved.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: Service Alerts being sent out when host is down

Post by rajasegar »

lmiltchev wrote:
I will write a wrapper command script that will ping the host and then execute the service if it is up.
This will take care of all situations regardless of poll and retry settings.
Let us know how this is working out for you, and if it is save to lock this topic as resolved.
Ok. Please go ahead.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
Locked