Nagios XI SQL Errors after ESX host patching
Posted: Wed Dec 10, 2014 2:36 pm
***UPDATE** Host Checks are fine. From what you probably can already tell from below, it's just related to service checks only.
My Nagios instance sits on a dedicated ESX host. They brought down the Nagios XI test vm (r2.0) and patched the ESX Host. Well when it came back up I am getting this all over the place.
HELP!
My Nagios instance sits on a dedicated ESX host. They brought down the Nagios XI test vm (r2.0) and patched the ESX Host. Well when it came back up I am getting this all over the place.
I tried to run the repair_database.sh as the nagios user but got this error:SQL: SQL Error [ndoutils] : Table './nagios/nagios_servicestatus' is marked as crashed and should be repaired SQL: SQL Error [ndoutils] : Table './nagios/nagios_servicestatus' is marked as crashed and should be repaired SQL: SQL Error [ndoutils] : Table './nagios/nagios_servicestatus' is marked as crashed and should be repaired SQL: SQL Error [ndoutils] : Table './nagios/nagios_servicestatus' is marked as crashed and should be repaired SQL: SQL Error [ndoutils] : Table './nagios/nagios_servicestatus' is marked as crashed and should be repaired SQL: SQL Error [ndoutils] : Table './nagios/nagios_servicestatus' is marked as crashed and should be repaired SQL: SQL Error [ndoutils] : Table './nagios/nagios_servicestatus' is marked as crashed and should be repaired
This did not correct anything.[nagios@nagiast01 scripts]$ ./repair_databases.sh
mysqld (pid 1438) is running...
mysqld (pid 1438) is running...
DATABASE: nagios
TABLE:
./repairmysql.sh: line 47: pushd: /var/lib/mysql/nagios: Permission denied
ERROR: Could not change to dir: /var/lib/mysql/nagios
mysqld (pid 1438) is running...
DATABASE: nagiosql
TABLE:
./repairmysql.sh: line 47: pushd: /var/lib/mysql/nagiosql: Permission denied
ERROR: Could not change to dir: /var/lib/mysql/nagiosql
Stopping ndo2db: head: cannot open `/usr/local/nagios/var/ndo2db.lock' for reading: No such file or directory
done.
Starting ndo2db: done.
Running configuration check...done.
Stopping nagios: done.
Starting nagios: done.
HELP!