Edit again: Not so easy fix.
Debian Etch Install from Source.
No data ever shows up from the website, and get errors in command line as well.
Trying to run /usr/bin/php -q /var/www/cacti/poller.php from command line gives the following errors.
sh: /test: No such file or directory
sh: /rrdtool: No such file or directory
The paths are correct, the ownership is set (new user setup for cacti with ownership of the /var/www/cacti and below.
I added debug echos to the poller.php and lib/poller.php to track the variables, and they're showing the path as set correctly prior to the exec call, but the error persists.
I've installed cacti dozens of times on numerous machines and never ran into this. Appreciate any insight or help.
poller - file paths
Moderators: Developers, Moderators
I set up symlinks to point to the various tools used, but there's still some kind of error when dealing with the path/file system.
Now it doesn't detect the rrd's are created and recreates them every time it polls.
Files are there, owned by cacti user (cacti) which the crontab is set up. This also occurs when logged in as cacti and running via command line.
I added some debug to the page to get more info.
File not found (/var/www/cacti/rra/localhost_traffic_in_10.rrd)02/03/2008 08:31:56 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /var/www/cacti/rra/localhost_traffic_in_10.rrd --step 300 DS:traffic_in:COUNTER:600:0:10000000 DS:traffic_out:COUNTER:600:0:10000000 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
Now it doesn't detect the rrd's are created and recreates them every time it polls.
Files are there, owned by cacti user (cacti) which the crontab is set up. This also occurs when logged in as cacti and running via command line.
I added some debug to the page to get more info.
File not found (/var/www/cacti/rra/localhost_traffic_in_10.rrd)02/03/2008 08:31:56 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /var/www/cacti/rra/localhost_traffic_in_10.rrd --step 300 DS:traffic_in:COUNTER:600:0:10000000 DS:traffic_out:COUNTER:600:0:10000000 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please replace crontab setting by
Wait one polling cycle and look at poller.log to find possible rrdtool errors
Reinhard
Code: Select all
/usr/bin/php -q /var/www/cacti/poller.php > /dev/null 2>&1
Code: Select all
/usr/bin/php -q /var/www/cacti/poller.php > /var/www/cacti/log/poller.log 2>&1
Reinhard
File not found (/var/www/cacti/rra/localhost_traffic_in_10.rrd)02/03/2008 08:31:56 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /var/www/cacti/rra/localhost_traffic_in_10.rrd --step 300 DS:traffic_in:COUNTER:600:0:10000000 DS:traffic_out:COUNTER:600:0:10000000 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
That's the bit from poller.log.
it recreates every rrd every time.
the file not found it is exra debug I added to that function to verify.
That's the bit from poller.log.
it recreates every rrd every time.
the file not found it is exra debug I added to that function to verify.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
TThat is from cacti.log, not from poller log. Please verify againvengent wrote:File not found (/var/www/cacti/rra/localhost_traffic_in_10.rrd)02/03/2008 08:31:56 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /var/www/cacti/rra/localhost_traffic_in_10.rrd --step 300 DS:traffic_in:COUNTER:600:0:10000000 DS:traffic_out:COUNTER:600:0:10000000 RRA:AVERAGE:0.5:1:600 RRA:AVERAGE:0.5:6:700 RRA:AVERAGE:0.5:24:775 RRA:AVERAGE:0.5:288:797 RRA:MAX:0.5:1:600 RRA:MAX:0.5:6:700 RRA:MAX:0.5:24:775 RRA:MAX:0.5:288:797
That's the bit from poller.log.
Reinhard
Who is online
Users browsing this forum: No registered users and 2 guests