After seeing alot of these:
Code: Select all
Mar 8 20:38:05 localhost ndo2db: Error: mysql_query() failed for 'INSERT INTO nagios_hostchecks SET instance_id='1', host_object_id='180', check_type='0', is_raw_check='0', current_check_attempt='1', max_check_attempts='5', state='0', state_type='1', start_time=FROM_UNIXTIME(1362775075), start_time_usec='255919', end_time=FROM_UNIXTIME(1362775085), end_time_usec='86893', timeout='30', early_timeout='0', execution_time='0.011200', latency='0.255000', return_code='0', output='OK - 10\.20\.1\.2: rta 1\.267ms, lost 0%', long_output='', perfdata='rta=1\.267ms;3000\.000;5000\.000;0; pl=0%;80;100;;', command_object_id='35', command_args='3000\.0!80%!5000\.0!100%', command_line='' ON DUPLICATE KEY UPDATE instance_id='1', host_object_id='180', check_type='0', is_raw_check='0', current_check_attempt='1', max_check_attempts='5', state='0', state_type='1', start_time=FROM_UNIXTIME(1362775075), start_time_usec='255919', end_time=FROM_UNIXTIME(1362775085), end_time_usec='86893', timeout='30', early_timeout='0', execution_time='0.011200', latency='0.255000', return_code='0', output='OK - 10\.20\.1\.2: rta 1\.267ms, lost 0%', long_output='', perfdata='rta=1\.267ms;3000\.000;5000\.000;0; pl=0%;80;100;;''
Mar 8 20:38:05 localhost ndo2db: mysql_error: 'Incorrect file format 'nagios_hostchecks''but that didnt't fix it...
the files show a file size of 0, what can i do to get this table back?
Code: Select all
mysql> repair table nagios_hostchecks;
+--------------------------+--------+----------+-------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+--------------------------+--------+----------+-------------------------------------------+
| nagios.nagios_hostchecks | repair | Error | Incorrect file format 'nagios_hostchecks' |
| nagios.nagios_hostchecks | repair | error | Corrupt |
+--------------------------+--------+----------+-------------------------------------------+
2 rows in set (0.00 sec)
[root@host nagios]# ls -lha nagios_hostchecks.
ls: cannot access nagios_hostchecks.: No such file or directory
[root@host nagios]# ls -lha nagios_hostchecks.*
-rw-rw---- 1 mysql mysql 34K Nov 28 09:42 nagios_hostchecks.frm
-rw-rw---- 1 mysql mysql 0 Jan 30 10:10 nagios_hostchecks.MYD
-rw-rw---- 1 mysql mysql 0 Jan 30 10:10 nagios_hostchecks.MYI