The Database Maintenance is red light after I fix the open-files-limits problem.
It first complained about number of files it can open,
and I changed the mariadb systemctl conf:
Code: Select all
$ systemctl edit mariadb
[Service]
LimitNOFILE=100000
finally problem solved; except the Database Maintenance is stuck at RED light.
I have checked:
- crontab config ok
- crond ok
- disk ok
Not Sure how to get it back.
These are what I've tried:
- Directly run the `dbmaint.php` written in crontab with mariadb goes down
Code: Select all
$ /usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php
CREATING: /usr/local/nagiosxi/var/dbmaint.lock
PHP Warning: mysqli_real_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /usr/local/nagiosxi/html/db/adodb/drivers/adodb-mysqli.inc.php on line 125
PHP Warning: mysqli_real_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /usr/local/nagiosxi/html/db/adodb/drivers/adodb-mysqli.inc.php on line 125
PHP Warning: mysqli_real_connect(): (HY000/2002): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /usr/local/nagiosxi/html/db/adodb/drivers/adodb-mysqli.inc.php on line 125- run the `dbmaint.php` written in crontab with mariadb back
Code: Select all
$ systemctl restart mariadb
$ usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php
LOCKFILE '/usr/local/nagiosxi/var/dbmaint.lock' EXISTS - EXITING!Thank you!
(I would send system profile in PM)