[Resolved] [Debian] cacti graph problem

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
sunfun
Posts: 8
Joined: Mon May 02, 2005 9:06 am

[Resolved] [Debian] cacti graph problem

Post by sunfun »

hello all,

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 installed also openssl package, apache2 and mysql 5.0.18
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/ 
that means the polling is not ok
but i have put this line in the crontab

Code: Select all

*/5 * * * * cacti php /var/www/cacti/poller.php > /dev/null 2>&1
in the config.php file, i have set these values to cacti :

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";

so i try to know what happens, so i go to the cacti log, and i see this :

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

and when i execute this command to simulate a polling by cacti, i have this error :

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

can you help me please ?

thank you

sunfun
Last edited by sunfun on Tue Sep 19, 2006 4:57 am, edited 1 time in total.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
sunfun
Posts: 8
Joined: Mon May 02, 2005 9:06 am

[Debian] cacti graph problem

Post by sunfun »

hello fmangeant,

thank you for your help

it works as i want !!! i must restart apache2 to take effects

sunfun
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests