The config.php file has this in it,
Code: Select all
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
@include('/etc/cacti/debian.php');
i go to debian.php (this was configured in setup)
Code: Select all
<?php
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "XXXXX";
?>
the poller.php command is in two cron's
debian installer put it in the etc/cron.d folder as cacti and i put it in the crontab file, not knowing that that debian installer had done it. running twice should still give me graphs tho.
crontab:
Code: Select all
*/5 * * * * www-data php /usr/share/cacti/site/poller.php > /dev/null 2>&1
cron.d/cacti
Code: Select all
*/5 * * * * www-data /usr/share/cacti/site/poller.php >/dev/null 2>&1
i have looked thru that poller logs and cacti logs and see no errors, at this point i am lost in where to find more feedback from the poller that makes sence, and ideas
UPDATE:
OK just ran the poller.php again and got this:
Code: Select all
carnmore:/usr/share/cacti/site# php poller.php
Fatal error: Call to undefined function: mysql_connect() in /usr/share/cacti/site/lib/adodb/drivers/adodb-mysql.inc.php on line 339
carnmore:/usr/share/cacti/site#
I can log into the site no problem, which should mean that mysql is working.
thanks
puma5k