i have a problem with poller.php,
it does not create rrd files, no errors..
And does not automaticly stop running.. (only when i ctrl-c the program).
Installed cacti like the manual,
rrdtool & snmp-.. are installed
Code: Select all
[root@server1 cacti-0.8.6h]# php poller.php
PHP Warning: Zend Optimizer does not support this version of PHP - please upgrade to the latest version of Zend Optimizer in Unknown on line 0
It always give the php warning under root, Zend just works fine.
I read everwhere permissions are bad..
but i think when it runs under root..
It should have access to everything.
and want to run the cronjob under root too..
Other things:
Code: Select all
[root@server1 cacti-0.8.6h]# ls -al rra/
totaal 8
drwxrwxrwx 2 apache users 4096 jan 11 22:59 .
drwxr-xr-x 11 1000 users 4096 jan 4 04:08 ..
-rw-r--r-- 1 apache users 0 jan 4 04:08 .placeholder
Code: Select all
RRDTool Command:
/usr/local/rrdtool-1.2.11/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Localhost - Load Average" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--units-exponent=0 \
--vertical-label="processes in the run queue" \
DEF:a="/var/www/html/cacti/cacti-0.8.6h/rra/localhost_load_1min_5.rrd":load_1min:AVERAGE \
DEF:b="/var/www/html/cacti/cacti-0.8.6h/rra/localhost_load_1min_5.rrd":load_5min:AVERAGE \
DEF:c="/var/www/html/cacti/cacti-0.8.6h/rra/localhost_load_1min_5.rrd":load_15min:AVERAGE \
CDEF:cdefg=TIME,1137017173,GT,a,a,UN,0,a,IF,IF,TIME,1137017173,GT,b,b,UN,0,b,IF,IF,TIME,1137017173,GT,c,c,UN,0,c,IF,IF,+,+ \
AREA:a#EACC00:"1 Minute Average" \
GPRINT:a:LAST:" Current\:%8.2lf\n" \
STACK:b#EA8F00:"5 Minute Average" \
GPRINT:b:LAST:" Current\:%8.2lf\n" \
STACK:c#FF0000:"15 Minute Average" \
GPRINT:c:LAST:"Current\:%8.2lf\n" \
LINE1:cdefg#000000:""
RRDTool Says:
ERROR: opening '/var/www/html/cacti/cacti-0.8.6h/rra/localhost_load_1min_5.rrd': No such file or directory
Thanks, Sander