monitoring and reporting stopped. ndoutils error on console
-
albertaarts
- Posts: 13
- Joined: Fri Jan 29, 2016 6:35 pm
monitoring and reporting stopped. ndoutils error on console
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
You need to run the following:
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
Code: Select all
service mysqld start
echo 'repair table nagios_programstatus use_frm;' | mysql -t -u root -pnagiosxi nagios
service mysqld restartYou 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
thanks! that didn't work but that is all good information. i'll get more familiar with database backups and maintenance.
Re: monitoring and reporting stopped. ndoutils error on cons
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
If it works, it should fix the invalid file format error for you.
To use it, login to the server as root and run the following
Code: Select all
cd /usr/local/nagiosxi/scripts
./repair_databases.shBe 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
thank you. it did not fix it but this is good to know.
- tacolover101
- Posts: 432
- Joined: Mon Apr 10, 2017 11:55 am
Re: monitoring and reporting stopped. ndoutils error on cons
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.
Re: monitoring and reporting stopped. ndoutils error on cons
albertaarts, did you follow the document, referenced by tacolover101? Did this help?
Be sure to check out our Knowledgebase for helpful articles and solutions!