OS: Debian Linux Sarge (3.1r0)
Apache 2
Php4
cacti-0.8.6f.tar.gz
-------------------------------------------------------
Hi,
i setup /etc/crontab like this:
Code: Select all
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || run-parts --report /etc/cron.daily
47 6 * * 7 root test -x /usr/sbin/anacron || run-parts --report /etc/cron.weekly
52 6 1 * * root test -x /usr/sbin/anacron || run-parts --report /etc/cron.monthly
# Cacti
*/5 * * * * servicos php4 /home/servicos/public_html/apps/cacti/poller.php > /dev/null 2>&1
Code: Select all
08/31/2005 11:45:03 AM - CMDPHP: Poller[0] ERROR: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'
Code: Select all
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "servicos";
$database_password = "password";
Code: Select all
php4 /home/servicos/public_html/apps/cacti/poller.php
The most curious part is that i removed the crontab entry from /etc/crontab and added the same entry to servico's crontab and i still got the same error message in the log.
Any help is most welcome,
Thank you.