All Hosts Showing Up in Service Status as Host Check Pending

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

All Hosts Showing Up in Service Status as Host Check Pending

Post by brdr »

Hi,

We have Nagios XI2014R2.3.

After a graceful shutdown and startup of all Nagios services the Hosts in the Service Status show up as Host Checking pending (gray color). However, the Host Status shows all Hosts as being Up (green color).

Also, when i select a host from Service status window and view the Host Status Detail is does NOT show host detail, i.e. no IP address, no host Alias.

Any idea why? This behavior is not present are other XI systems.

Please see attached.
Thanks
You do not have the required permissions to view the files attached to this post.
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: All Hosts Showing Up in Service Status as Host Check Pen

Post by brdr »

Also i can no longer schedule a service check vi 'Schedule a forced immediate check' or schedule a host check either. Hmmm...
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: All Hosts Showing Up in Service Status as Host Check Pen

Post by lmiltchev »

Does restarting services fix the issue?

Code: Select all

service nagios stop
killall nagios
service ndo2db stop
service ndo2db start
service nagios start
Be sure to check out our Knowledgebase for helpful articles and solutions!
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: All Hosts Showing Up in Service Status as Host Check Pen

Post by brdr »

Yes, that worked.

Below is the stop and start scripts we use. Is this the correct sequence of stopping/starting Nagios XI? Do I need to put a 'killall' in stop script to be sure all nagios services/processes are down before running the start script?

#
# This will gracefully shutdown all nagios services
# must be 'root' user
#
/sbin/service nagiosxi stop
/sbin/service npcd stop
/sbin/service ndo2db stop
/sbin/service nagios stop
/sbin/service postgresql stop
/sbin/service mysqld stop
/sbin/service httpd stop
/sbin/service gearmand stop
/sbin/service mod_gearman_worker stop


#
# This will gracefully start all nagios services
# must be 'root' user
#
/sbin/service gearmand start
/sbin/service mod_gearman_worker start
/sbin/service httpd start
/sbin/service mysqld start
/sbin/service postgresql start
/sbin/service nagios start
/sbin/service ndo2db start
/sbin/service npcd start
/sbin/service nagiosxi start
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: All Hosts Showing Up in Service Status as Host Check Pen

Post by abrist »

Bring up ndo2db and npcd before nagios. Also, you may want to sleep for a few seconds after ndo is up before starting the nagios service.
Also, the nagiosxi service does nothing at this time. (I believe it just exists)
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
brdr
Posts: 312
Joined: Mon Jun 02, 2014 12:49 pm

Re: All Hosts Showing Up in Service Status as Host Check Pen

Post by brdr »

ok, i will update script and test. Plz lock up.
Locked