Page 1 of 1
All Hosts Showing Up in Service Status as Host Check Pending
Posted: Thu May 07, 2015 3:15 pm
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
Re: All Hosts Showing Up in Service Status as Host Check Pen
Posted: Thu May 07, 2015 3:25 pm
by brdr
Also i can no longer schedule a service check vi 'Schedule a forced immediate check' or schedule a host check either. Hmmm...
Re: All Hosts Showing Up in Service Status as Host Check Pen
Posted: Thu May 07, 2015 4:41 pm
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
Re: All Hosts Showing Up in Service Status as Host Check Pen
Posted: Thu May 07, 2015 4:50 pm
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
Re: All Hosts Showing Up in Service Status as Host Check Pen
Posted: Thu May 07, 2015 4:58 pm
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)
Re: All Hosts Showing Up in Service Status as Host Check Pen
Posted: Thu May 07, 2015 5:03 pm
by brdr
ok, i will update script and test. Plz lock up.