Poller Problem

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

Moderators: Developers, Moderators

Post Reply
blaaat
Posts: 2
Joined: Wed Jan 11, 2006 5:06 pm

Poller Problem

Post by blaaat »

Hey,

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

and it don't stop running...
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

Can someone help me?

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

Post by gandalf »

Please goto Settings and switch the Logging Level to Debug. Have a look at <path_cacti>/log/cacti.log for possible errors.
Reinhard
blaaat
Posts: 2
Joined: Wed Jan 11, 2006 5:06 pm

Post by blaaat »

fixed the problem, don't exactly know how...

Edited poller.php so it could run by WEB..
set cronjobs by wget http://..../poller.php.

Normal cronjobs keep changing the user to 1000 in stead of apache.
Also my firewall blocked the SNMP acces to my switch.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Poller is not ment to run from the web server.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

blaaat wrote:fixed the problem, don't exactly know how...

Edited poller.php so it could run by WEB..
set cronjobs by wget http://..../poller.php.

Normal cronjobs keep changing the user to 1000 in stead of apache.
Also my firewall blocked the SNMP acces to my switch.
I'd recommend

Code: Select all

*/5 * * * *     cactiuser       /usr/bin/php /var/www/html/cacti/poller.php > /var/www/html/cacti/log/poller.log 2>&1
in your crontab (all on one line)
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest