Hosts check stuck in pending
Hosts check stuck in pending
I'm using Nagios® Core™ 4.1.0rc1 running on 64 bit Cent OS 5.11
When I check the Map option i see 2/3 of the map pending and the other 1/3 up and green
the services are all OK in status the logs don't show anything unusual the same hosts that are in pending state also on the Hosts listing dont show and Duration time just "???" in that field. The only way i can get the pending to change is to Re-schedule the next check of this host is the only way i can get the map display to show each host up instead of pending.
I have searched Google and the forum posts And only see something like this in Nagios XI but I dont have the option it talks about to change this.
https://support.nagios.com/forum/viewto ... 16&t=27673
Any help would be greatly appreciated
When I check the Map option i see 2/3 of the map pending and the other 1/3 up and green
the services are all OK in status the logs don't show anything unusual the same hosts that are in pending state also on the Hosts listing dont show and Duration time just "???" in that field. The only way i can get the pending to change is to Re-schedule the next check of this host is the only way i can get the map display to show each host up instead of pending.
I have searched Google and the forum posts And only see something like this in Nagios XI but I dont have the option it talks about to change this.
https://support.nagios.com/forum/viewto ... 16&t=27673
Any help would be greatly appreciated
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Hosts check stuck in pending
This is typical behaviour of a host that doesn't have a valid host check defined. Do you?
It might be helpful to look at the host definition in objects.cache for a host stuck in PENDING. Clues are usually easy to spot there.
It might be helpful to look at the host definition in objects.cache for a host stuck in PENDING. Clues are usually easy to spot there.
Re: Hosts check stuck in pending
Every host has a
check_command check-host-alive
See my host.cfg attached
check_command check-host-alive
See my host.cfg attached
- Attachments
-
- Default Linux Host Template ICCC Network.docx
- (14.85 KiB) Downloaded 406 times
Re: Hosts check stuck in pending
here is my host.cache file
- Attachments
-
- NAGIOS OBJECT CACHE FILE.docx
- (24.05 KiB) Downloaded 287 times
Re: Hosts check stuck in pending
They look like the same setup for one the is show up correctly and another that is showing up correctly?
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Hosts check stuck in pending
Everything looks OK. Next step is to peer at your nagios.log file for anomalies. Something is preventing your checks from running and it's hard to say what. nagios.log may have clues - and additionally it could be a problem in your nagios.cfg. Can you shoot that our way for review?
Also - anecdotally and totally not related, why bleeding edge Nagios on such an old version of Cent?
Also - anecdotally and totally not related, why bleeding edge Nagios on such an old version of Cent?
Re: Hosts check stuck in pending
i had it available at the time the Linux box and it wasn't being used plan to update this summer but haven't gotten around to it.
here are the two files
thank you for your help!!
here are the two files
thank you for your help!!
- Attachments
-
- Log fileNagios.docx
- (13.78 KiB) Downloaded 217 times
-
- NAGIOS_CFG.docx
- (40.92 KiB) Downloaded 225 times
Re: Hosts check stuck in pending
It could be that your retention.dat file is corrupt. You could delete it but the consequences of that is your system will lose all of the notes, downtime, duration, and all of your checks will start over like it is a new system.
If you are willing to to this, here is how to do that.
In a shell as root run the following
Let us know if the hosts start up after doing this.
If you are willing to to this, here is how to do that.
In a shell as root run the following
Code: Select all
service nagios stop
rm /usr/local/nagios/var/retention.dat
service nagios start
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Hosts check stuck in pending
that seemed to do the trick thank you, does that have to be done once in awhile?
Re: Hosts check stuck in pending
Shouldn't have to be done at all unless that file was corrupted.
Possible causes are power outages, drive failure or the drive filling up, etc.
Shall I close the post?
Possible causes are power outages, drive failure or the drive filling up, etc.
Shall I close the post?
Be sure to check out our Knowledgebase for helpful articles and solutions!