i have installed cacti 0.8.6h under Debian 2.6.12-2-686
i have done this command tar xvzf cacti-0.8.6h in the /var/www/cacti directory
i've also written a virtualHost file in /etc/apache2/sites-enabled, like this :
Code: Select all
<VirtualHost @IP:443>
ServerName cacti.mondomaine.com:443
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/phoenix.crt
SSLCertificateKeyFile /etc/apache2/ssl/phoenix.key
ErrorLog /var/log/apache2/cacti-error.log
CustomLog /var/log/apache2/cacti-access.log combined
DocumentRoot /var/www/cacti/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
Alias /cacti/ "/var/www/cacti/"
Alias /phpmyadmin/ "/var/www/phpmyadmin/"
<Directory /var/www/cacti/>
DirectoryIndex index.php
Options +Indexes
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
i've created cacti database in mysql
i can access to the cacti web interface
i success to log in
i can create devices, trees and i have information by snmp
but i can't see any graphs
i have set the rights to cacti on the directories rra and log, like this :
Code: Select all
chown -R cacti:cacti rra/ log/
but i have put this line in the crontab
Code: Select all
*/5 * * * * cacti php /var/www/cacti/poller.php > /dev/null 2>&1
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 = "cacti";
$database_password = "****";
$database_port = "3306";
Code: Select all
phoenix:/var/www/cacti/log# tail -f cacti.log
09/06/2006 05:09:54 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceed
ed. Exiting.
09/06/2006 05:09:54 PM - SYSTEM STATS: Time:292.7120 Method:cmd.php Processes:1
Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:5 RRDsProcessed:0
09/06/2006 05:14:54 PM - POLLER: Poller[0] Maximum runtime of 292 seconds exceed
ed. Exiting.
09/06/2006 05:14:54 PM - SYSTEM STATS: Time:292.7244 Method:cmd.php Processes:1
Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:5 RRDsProcessed:0
09/18/2006 01:20:02 PM - POLLER: Poller[0] ERROR: The path: is invalid. Can no
t continue
09/18/2006 01:25:01 PM - POLLER: Poller[0] ERROR: The path: is invalid. Can no
t continue
09/18/2006 01:30:01 PM - POLLER: Poller[0] ERROR: The path: is invalid. Can no
t continue
Code: Select all
phoenix:/home/swong# /usr/bin/php4 /var/www/cacti/poller.php
Fatal error: Call to undefined function: mysql_pconnect() in /var/www/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 356
thank you
sunfun