monitoring and reporting stopped. ndoutils error on console

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
albertaarts
Posts: 13
Joined: Fri Jan 29, 2016 6:35 pm

monitoring and reporting stopped. ndoutils error on console

Post by albertaarts »

Hi there. I'm hoping someone can help me out. Recently our Nagiox XI stopped reporting issues and the homepage of the web interface has the following message repeated many times over: SQL: SQL Error [ndoutils] : Incorrect file format 'nagios_programstatus' SQL
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: monitoring and reporting stopped. ndoutils error on cons

Post by dwhitfield »

You need to run the following:

Code: Select all

service mysqld start
echo 'repair table nagios_programstatus use_frm;' | mysql -t -u root -pnagiosxi nagios
service mysqld restart
If that doesn't work, you may need to run the following mysql -u ndoutils -pn@gweb nagios -e 'TRUNCATE TABLE nagios_programstatus'

You may get some other ideas by looking at https://assets.nagios.com/downloads/nag ... tabase.pdf
albertaarts
Posts: 13
Joined: Fri Jan 29, 2016 6:35 pm

Re: monitoring and reporting stopped. ndoutils error on cons

Post by albertaarts »

thanks! that didn't work but that is all good information. i'll get more familiar with database backups and maintenance.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: monitoring and reporting stopped. ndoutils error on cons

Post by tgriep »

There is a script on the Nagios server that you can use to repair all of the databases on the server.
To use it, login to the server as root and run the following

Code: Select all

cd /usr/local/nagiosxi/scripts
./repair_databases.sh
If it works, it should fix the invalid file format error for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
albertaarts
Posts: 13
Joined: Fri Jan 29, 2016 6:35 pm

Re: monitoring and reporting stopped. ndoutils error on cons

Post by albertaarts »

thank you. it did not fix it but this is good to know.
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: monitoring and reporting stopped. ndoutils error on cons

Post by tacolover101 »

look at https://assets.nagios.com/downloads/nag ... tabase.pdf under the 'troubleshooting' section, the second example is the same issue you're facing, so this should help you resolve it.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: monitoring and reporting stopped. ndoutils error on cons

Post by lmiltchev »

albertaarts, did you follow the document, referenced by tacolover101? Did this help?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked