We have passive monitoring enabled using a remote poller. The problem is that passive host checks will come in as a hard state immediately. My first attempt to get around that was to create a ping check as a service and then generate alerts off of the ping check. The problem, it appears that if the host is in a hard state, then the service checks immediately become hard if they fail. Is there a way to change this behavior?
What currently happens:
Host check 1: DOWN; HARD 1
Service check 1: CRITICAL; HARD 1
Example of what we want with a service check with 3 retries:
Host check 1: DOWN; HARD 1
Service check 1: CRITICAL; SOFT 1
Service check 2: CRITICAL; SOFT 2
Service check 3: CRITICAL; HARD 3
A solution would also be to have it so that passive host checks do not always come in as CRITICAL but that seems to be the way they are setup.
Passive Monitoring Host Checks CRITICAL
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Passive Monitoring Host Checks CRITICAL
In you nagios.cfg you can change
then restart nagios
Code: Select all
passive_host_checks_are_soft=1Code: Select all
service nagios restart-
AMacintosh
- Posts: 59
- Joined: Mon Nov 07, 2011 12:26 pm
Re: Passive Monitoring Host Checks CRITICAL
Thanks. We have enabled this setting.
We are now facing an issue where the Host Check intervals are set to 5 5 5 on the remote poller but in our Nagios XI it is showing updates every 1 minute for the Host check.
ideas??
We are now facing an issue where the Host Check intervals are set to 5 5 5 on the remote poller but in our Nagios XI it is showing updates every 1 minute for the Host check.
ideas??
Re: Passive Monitoring Host Checks CRITICAL
Where are you setting the 5,5,5 for the remote host? If you are setting it in the CCM it will have no effect as the passive agents operate on their own schedule independent of any Nagios settings.
Former Nagios employee
-
AMacintosh
- Posts: 59
- Joined: Mon Nov 07, 2011 12:26 pm
Re: Passive Monitoring Host Checks CRITICAL
The 5,5,5 is being set on the remote Nagios Core poller.
Re: Passive Monitoring Host Checks CRITICAL
Could you post the settings for that host check for both the local XI server and the remote server also we we can review them?
Be sure to check out our Knowledgebase for helpful articles and solutions!