I encounter a problem about services checks.
The configuration :
- Linux RHEL 6.3
- Nagios 3.4.1
The problem :
When, on a host (for example "localhost"), I check for the results of a service (for example "SSH"), the polling is
executed at the configured interval (60 seconds).
I got the "start times" :
2012-09-20 12:06:28
2012-09-20 12:07:28
2012-09-20 12:08:28
2012-09-20 12:09:28
2012-09-20 12:10:28
Then, I use an external command to force a immediate check on the SSH service of localhost :
Code: Select all
echo "[`date +%s`] SCHEDULE_FORCED_SVC_CHECK;localhost;SSH;`date +%s`" > /usr/local/nagios/var/rw/nagios.cmd2012-09-20 12:07:28
2012-09-20 12:08:28
2012-09-20 12:09:28
2012-09-20 12:10:28
2012-09-20 12:10:49
But afterwards, Nagios keeps two checks on the SSH service :
2012-09-20 12:10:28
2012-09-20 12:10:49
2012-09-20 12:11:28
2012-09-20 12:11:49
2012-09-20 12:12:28
2012-09-20 12:12:49
And If I schedules a new forced check (SCHEDULE_FORCED_SVC_CHECK) I get one more check for the same service :
2012-09-20 12:13:28
2012-09-20 12:13:49
2012-09-20 12:14:07
2012-09-20 12:14:28
2012-09-20 12:14:49
2012-09-20 12:15:07
2012-09-20 12:15:28
2012-09-20 12:15:49
And it's possible to do it again and again to finally to get lots of checks for a single service.
The problem is that the load and the number of useless checks are increasing on the host.
Does anyone have any idea to solve this problem?
Thanks in advance for any information.