No Hosts, No Services, notification disabled

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
botswanamtc
Posts: 19
Joined: Tue Aug 26, 2014 6:53 am

No Hosts, No Services, notification disabled

Post by botswanamtc »

Morning,

I have a problem with NagiosXI, I schedulled a downtime for the weekend as we had a power maintenance over the weekend. Now I have the following problems.....all hosts (1000+) have notifications diabled. I cannot access services for a single host by clicking on service detail for any host.

the system shows no hosts and no services under System Profile.

Kindly help.

Regards,
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: No Hosts, No Services, notification disabled

Post by lmiltchev »

the system shows no hosts and no services under System Profile.
Check the mysqld.log for errors/crashed tables:

Code: Select all

tail -50 /var/log/mysqld.log
Run the database repair script if you need to:

Code: Select all

cd /usr/local/nagiosxi/scripts
./repair_databases.sh
Stop/start services:

Code: Select all

service nagios stop
service ndo2db stop
service ndo2db start
service nagios start
service mysqld restart
Check the number of hosts/services from the CLI:

Code: Select all

echo 'select count(*) from nagios.nagios_hosts;' | mysql -t -pnagiosxi
echo 'select count(*) from nagios.nagios_services;' | mysql -t -pnagiosxi
Are you getting the correct numbers?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked