2012R1 error ndo2db

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jrmartin
Posts: 46
Joined: Mon Aug 08, 2011 6:55 pm

2012R1 error ndo2db

Post by jrmartin »

HEllo,
I am getting the following error but have not the slightest idea on what to do. I upgraded to 2012R1 just a week or two ago.
Any ideas? Thanks,
Jeff


Oct 24 07:46:14 nadc-nag-p01 ndo2db: Error: mysql_query() failed for 'INSERT INTO nagios_systemcommands SET instance_id='1', start_time=FROM_UNIXTIME(1351089974), start_time_usec='96389', end_time=FROM_UNIXTIME(1351089974), end_time_usec='101184', command_line='/bin/mv /usr/local/nagios/var/service-perfdata /usr/local/nagios/var/spool/xidpe/1351089974\.perfdata\.service', timeout='5', early_timeout='0', execution_time='0.004000', return_code='0', output='', long_output='' ON DUPLICATE KEY UPDATE instance_id='1', start_time=FROM_UNIXTIME(1351089974), start_time_usec='96389', end_time=FROM_UNIXTIME(1351089974), end_time_usec='101184', command_line='/bin/mv /usr/local/nagios/var/service-perfdata /usr/local/nagios/var/spool/xidpe/1351089974\.perfdata\.service', timeout='5', early_timeout='0', execution_time='0.004000', return_code='0', output='', long_output='''
Oct 24 07:46:14 nadc-nag-p01 ndo2db: mysql_error: 'Table './nagios/nagios_systemcommands' is marked as crashed and should be repaired'
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: 2012R1 error ndo2db

Post by lmiltchev »

Try running the repair on the database:

Code: Select all

/usr/local/nagiosxi/scripts/repairmysql.sh nagios
Hope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jrmartin
Posts: 46
Joined: Mon Aug 08, 2011 6:55 pm

Re: 2012R1 error ndo2db

Post by jrmartin »

that worked, thank you.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: 2012R1 error ndo2db

Post by lmiltchev »

Great! :D
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked