Poller.php path error for rrdtool

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

Moderators: Developers, Moderators

Post Reply
vdubgeek
Posts: 3
Joined: Thu Jul 29, 2010 1:35 pm

Poller.php path error for rrdtool

Post by vdubgeek »

Hello,
I'm troubleshooting a new install of Cacti 0.8.7g on a Centos 5.x server. When I execute poller.php from the command line, I get the following output :

sh: /test: No such file or directory
sh: /rrdtool: No such file or directory

It appears that poller.php is not pulling the full path for rrdtool , though I have the correct path configured Cacti web console (/usr/bin/rrdtool). Any tips on how I can fix this?

Nothing is being written to the cacti log file. I've tried running this as both root and as my cacti account, with the same results.
vdubgeek
Posts: 3
Joined: Thu Jul 29, 2010 1:35 pm

making some progress..

Post by vdubgeek »

I've made some progress, I've gotten to the point that I'm now getting some errors written to the cacti.log to work with. If I execute cmd.php directly, I'm getting the following logged:

07/29/2010 06:05:11 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid. Partial Result: U
07/29/2010 06:05:11 PM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /var/www/vhosts/eftuniverse.com/httpdocs/cacti/scripts/linux_memory.pl MemFree:, output: U
07/29/2010 06:05:11 PM - CMDPHP: Poller[0] DEVEL: SQL Exec: "insert into poller_output (local_data_id, rrd_name, time, output) values (3, 'mem_buffers', '2010-07-29 18:05:11', 'U')"

If I execute the perl script manually from a command shell, it appears to execute correctly, parsing the snmp data. I also see data being stored in the poller_output table. But, cacti seems to have an issue with the output of the perl script.

I'm pretty green at Cacti, so if anyone has any tips, I'd be interested.

Thanks!
vdubgeek
Posts: 3
Joined: Thu Jul 29, 2010 1:35 pm

Issue resolved

Post by vdubgeek »

After digging into the code, I found that PHP safe mode was breaking the call to popen for the perl scripts. Turning off Safe mode has resolved my issues.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest