Code: Select all
mysqlcheck -f -r -u root -pnagiosxi --all-databases
......
nagiosxi.xi_incidents
note : The storage engine for the table doesn't support repair
....
Code: Select all
mysqlcheck -f -r -u root -pnagiosxi --all-databases
......
nagiosxi.xi_incidents
note : The storage engine for the table doesn't support repair
....
Code: Select all
echo 'ALTER TABLE nagiosxi.xi_incidents engine=MyISAM;' | mysql -u root -pnagiosxiCode: Select all
[root@ip-172-31-0-10 centos]# mysql -uroot -pnagiosxi -e "show global status like 'Max_used_connections';"
+----------------------+-------+
| Variable_name | Value |
+----------------------+-------+
| Max_used_connections | 39 |
+----------------------+-------+
[root@ip-172-31-0-10 centos]# mysql -uroot -pnagiosxi -e "show variables like 'max_connections';"
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| max_connections | 818 |
+-----------------+-------+
Code: Select all
/usr/local/nagios/etc/ndo2db.cfgCode: Select all
socket_type=tcp
socket_name=/var/run/ndo.sock
lock_file=/usr/local/nagios/var/ndo2db.lock
tcp_port=5668Code: Select all
service ndo2db restartCode: Select all
[root@ip-172-31-0-10 centos]# vi /usr/local/nagios/etc/ndo2db.cfg
[root@ip-172-31-0-10 centos]# service ndo2db restart
Restarting ndo2db (via systemctl): [ OK ]
[root@ip-172-31-0-10 centos]# service ndo2db status
ndo2db is not running but subsystem locked
[root@ip-172-31-0-10 centos]#