[nagios@nagiosprodxi1 scripts]$ sudo ./repair_databases.sh
mysqld is stopped
Starting mysqld: [ OK ]
mysqld (pid 7274) is running...
DATABASE: nagios
TABLE:
/usr/local/nagiosxi/scripts/repairmysql.sh: line 49: pushd: /var/lib/mysql/nagios: No such file or directory
ERROR: Could not change to dir: /var/lib/mysql/nagios
mysqld (pid 7274) is running...
DATABASE: nagiosql
TABLE:
/usr/local/nagiosxi/scripts/repairmysql.sh: line 49: pushd: /var/lib/mysql/nagiosql: No such file or directory
ERROR: Could not change to dir: /var/lib/mysql/nagiosql
Stopping ndo2db: done.
Starting ndo2db: done.
Running configuration check...done.
Stopping nagios: .done.
Starting nagios: done.
You can use the following command below to repair the Mysql databases. Run it from the XI server.
Replace <user>, <password> and xxx.xxx.xxx.xxx with the correct information for your server.
tgriep wrote:You can use the following command below to repair the Mysql databases. Run it from the XI server.
Replace <user>, <password> and xxx.xxx.xxx.xxx with the correct information for your server.