I've searched around for days to get it to work on my debian sarge system. I also read a lot of howtos, searched trough the forums here and I allways have the same problem: No graph's are showing...
To be sure that I do everything correct I used in my last try the instructions from http://www.cacti.net/downloads/docs/htm ... _unix.html.
In the instructions there is no description how to create the user which runs the poller.php-script. I did it in the following way:
Code: Select all
adduser --system --no-create-home cacti
safe_mode is turned off. The directories log and rra are owned by cacti. The other files are owned by user:users (can that be the problem?).
Debug of Memory Usage:
Code: Select all
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1138027054 \
--end=1138113454 \
--title="Localhost - Memory Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2006/01/23 15:37:34 To 2006/01/24 15:37:34\c" \
COMMENT:" \n" \
--vertical-label="kilobytes" \
DEF:a="/var/www/vhosts/default/httpsdocs/cacti/rra/localhost_mem_buffers_3.rrd":mem_buffers:AVERAGE \
DEF:b="/var/www/vhosts/default/httpsdocs/cacti/rra/localhost_mem_swap_4.rrd":mem_swap:AVERAGE \
AREA:a#FF4105:"Free" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
STACK:b#FFC73B:"Swap" \
GPRINT:b:LAST:"Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s
Code: Select all
whereis [toolname]
When I run poller.php manually via shell I get the following error-message:
Code: Select all
/var/www/vhosts/default/httpsdocs/cacti# php poller.php
Fatal error: Call to undefined function: mysql_pconnect() in /var/www/vhosts/default/httpsdocs/cacti/lib/adodb/drivers/adodb-mysql.inc.php on line 356
At my first try to install cacti, I tried it via apt-get. During the installation I got a information message:
I've searched in /etc/php4/apache2/php.ini for adodb but I couldn't find anything. Can that be a part of the problem?Warning: include path for php has changed!
libphp-adodb isn't longer installed in /usr/lib/adodb. New installation path is now /usr/share/adodb.
Please update your php.ini file. Maybe you must also change your web-server configuration for this.
It would be nice if anybody can help me or is it impossible to use cacti (which looks very nice) on a debian sarge system?
Greets and THX,
Dawn
PS: I'm using the latest version of cacti: 0.8.6h