Page 1 of 1
Database Maintenance ??
Posted: Wed May 11, 2011 8:55 am
by hhlodge
My system status page under Admin has a red "bang" icon on Database Maintenance with a mouse-over saying it hasn't run in 4+ days. I read the database optimization and repair manuals and forum search all show nothing about this. crond is running so if something is suppose to happen there, it should. What needs to be done? Here's a screenshot..
Admin.png
Re: Database Maintenance ??
Posted: Wed May 11, 2011 9:53 am
by hhlodge
After a bit of digging, I found this error.
[root@psm-itmon log]# cat /usr/local/nagiosxi/var/dbmaint.log
LOCKFILE '/usr/local/nagiosxi/var/dbmaint.lock' IS OLD - REMOVING
PHP Fatal error: Call to undefined function unlinke() in /usr/local/nagiosxi/cron/dbmaint.php on line 30
So I changed unlinke to unlink, ran this job I found in /var/log/cron
/usr/bin/php -q /usr/local/nagiosxi/cron/dbmaint.php > /usr/local/nagiosxi/var/dbmaint.log 2>&1
and the LED has gone to green.
Re: Database Maintenance ??
Posted: Wed May 11, 2011 10:06 am
by tonyyarusso
Thanks for the report! Turns out someone else stumbled across this as well, and it is now fixed in the code trunk for inclusion in the next point release.