Can't get it to show graphs on Debian 3 kernel 2.6.12-2-686

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

Can't get it to show graphs on Debian 3 kernel 2.6.12-2-686

Post by sunfun »

Hello all,

I have a problem with cacti 0.8.6j

I have installed on a debian 3 with a kernel 2.6.12-2-686
I have also installed mysql-server-5.0, php5 and apache2 and openssl.

I show you the cacti configuration :

<VirtualHost 10.104.23.6:443>
ServerName cacti.mondomaine.com:443
ServerAdmin root@mondomaine.com
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/phoenix.crt
SSLCertificateKeyFile /etc/apache2/ssl/phoenix.key
ErrorLog /u0/log/apache2/cacti-error.log
CustomLog /u0/log/apache2/cacti-access.log combined

DocumentRoot /u0/www/cacti/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

Alias /cacti/ "/u0/www/cacti/"

<Directory /u0/www/cacti/>
DirectoryIndex index.php
Options +Indexes
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
I don't understand where the problem is.

mysql is running as you can see
root@phoenix:/u0/www/cacti# ps aux | grep mysql
root 28402 0.0 0.1 2748 1244 ? S May13 0:00 /bin/sh /usr/bin/mysqld_safe
mysql 28438 0.0 1.8 128324 19276 ? Sl May13 0:05 /usr/sbin/mysqld --basedir=/usr --datadir=/u0/databases --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --port=3306 --socket=/var/run/mysqld/mysqld.sock
root 28439 0.0 0.0 1876 556 ? S May13 0:00 logger -p daemon.err -t mysqld_safe -i -t mysqld
I have also allow mysql in /etc/php5/cgi/php.ini file, like this :

can you help me please ?

thank you by advance

sunfun
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

What exactly is the problem? Any errors in log/cacti.log? Or in httpd's error_log? See some basic debugging hints at second link of my signature
Reinhard
sunfun
Posts: 8
Joined: Mon May 02, 2005 9:06 am

Can't get it to show graphs on Debian 3 kernel 2.6.12-2-686

Post by sunfun »

hello gandalf,

i have this kind of error in /u0/www/cacti/log/cacti.log file :

05/15/2007 12:12:26 PM - CMDPHP: Poller[0] Time: 2.3761 s, Theads: N/A, Hosts: 2
05/15/2007 12:14:31 PM - CMDPHP: Poller[0] WARNING: sockets support not enabled
in PHP, falling back to SNMP ping
05/15/2007 12:14:33 PM - CMDPHP: Poller[0] Time: 2.3770 s, Theads: N/A, Hosts: 2
and this error in this file /var/log/apache2/error.log

ERROR: opening '/u0/www/cacti/rra/routeur_central_traffic_in_32.rrd': No such fi
le or directory
The second error is very strange because i see in the /u0/www/cacti/rra directory all rrd files

root@phoenix:/u0/www/cacti/rra# ls -l
total 2936
-rw-r--r-- 1 root root 141488 2007-05-15 12:14 localhost_load_1min_5.rrd
-rw-r--r-- 1 root root 47840 2007-05-15 12:14 localhost_mem_buffers_3.rrd
-rw-r--r-- 1 root root 47840 2007-05-15 12:14 localhost_mem_swap_4.rrd
-rw-r--r-- 1 root root 47840 2007-05-15 12:14 localhost_proc_7.rrd
-rw-r--r-- 1 root root 47840 2007-05-15 12:14 localhost_users_6.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_10.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_11.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_12.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_13.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_14.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_15.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_16.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_17.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_18.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_19.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_20.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_21.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_22.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_23.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_24.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_25.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_26.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_27.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_28.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_29.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_30.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_31.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_32.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_33.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_8.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_9.rrd
Now, my problem is that I have the graphic screen, but I can'thave any statistics about each equipment

That's very strange.

And about the crontab, i have put this line to poll by snmp all equipments :

*/5 * * * * cacti php /u0/www/cacti/poller.php > /dev/null 2>&1
can you help me please ?

thank you

sunfun
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Can't get it to show graphs on Debian 3 kernel 2.6.12-2-

Post by gandalf »

sunfun wrote:hello gandalf,

i have this kind of error in /u0/www/cacti/log/cacti.log file :

05/15/2007 12:12:26 PM - CMDPHP: Poller[0] Time: 2.3761 s, Theads: N/A, Hosts: 2
05/15/2007 12:14:31 PM - CMDPHP: Poller[0] WARNING: sockets support not enabled
in PHP, falling back to SNMP ping
05/15/2007 12:14:33 PM - CMDPHP: Poller[0] Time: 2.3770 s, Theads: N/A, Hosts: 2
To debug this, you will need to increase debugging level as stated at second link of my signature.
and this error in this file /var/log/apache2/error.log

ERROR: opening '/u0/www/cacti/rra/routeur_central_traffic_in_32.rrd': No such fi
le or directory
Only for this rrd file or for all of those you try to graph?
The second error is very strange because i see in the /u0/www/cacti/rra directory all rrd files

root@phoenix:/u0/www/cacti/rra# ls -l
total 2936
-rw-r--r-- 1 root root 141488 2007-05-15 12:14 localhost_load_1min_5.rrd
-rw-r--r-- 1 root root 47840 2007-05-15 12:14 localhost_mem_buffers_3.rrd
-rw-r--r-- 1 root root 47840 2007-05-15 12:14 localhost_mem_swap_4.rrd
-rw-r--r-- 1 root root 47840 2007-05-15 12:14 localhost_proc_7.rrd
-rw-r--r-- 1 root root 47840 2007-05-15 12:14 localhost_users_6.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_10.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_11.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_12.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_13.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_14.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_15.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_16.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_17.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_18.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_19.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_20.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_21.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_22.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_23.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_24.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_25.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_26.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_27.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_28.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_29.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_30.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_31.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_32.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_33.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_8.rrd
-rw-r--r-- 1 cacti cacti 94664 2007-05-15 12:14 routeur_central_traffic_in_9.rrd
There are some files owned by root: bad. Please change ownership to cacti:cacti and make sure, that httpd can read those files
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest