Ok so I removed cacti via yum, removed the conf files, the cron.d/cacti files, and attempted a basic setup, I unzipped version 0.8.7d to /var/www/vhosts/<domain>/httpdocs/cacti
I ran:
chown <username> -R cacti/
Added the following to crontab
*/5 * * * * avenfeld_c php /var/www/vhosts/avenfeld.com/httpdocs/cacti/poller.php > /dev/null 2>&1
Now cacti installs, I see the log file in setup....fatastic
Now my rrd files will not create... here is what I get if I run php cmd.php from <username>
Code: Select all
-sh-3.2$ php cmd.php
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] SNMP: Host responded to SNMP
sh: /perl: No such file or directory
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid. Partial Result: U
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] DS[3] CMD: /usr/bin/perl /var/www/vhosts/avenfeld.com/httpdocs/cacti/scripts/linux_memory.pl MemFree:, output: U
sh: /perl: No such file or directory
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result: U
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] DS[4] CMD: /usr/bin/perl /var/www/vhosts/avenfeld.com/httpdocs/cacti/scripts/linux_memory.pl SwapFree:, output: U
sh: /perl: No such file or directory
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] DS[5] WARNING: Result from CMD not valid. Partial Result: U
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] DS[5] CMD: /usr/bin/perl /var/www/vhosts/avenfeld.com/httpdocs/cacti/scripts/loadavg_multi.pl, output: U
sh: /perl: No such file or directory
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] DS[6] WARNING: Result from CMD not valid. Partial Result: U
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] DS[6] CMD: /usr/bin/perl /var/www/vhosts/avenfeld.com/httpdocs/cacti/scripts/unix_users.pl , output: U
sh: /perl: No such file or directory
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] DS[7] WARNING: Result from CMD not valid. Partial Result: U
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] DS[7] CMD: /usr/bin/perl /var/www/vhosts/avenfeld.com/httpdocs/cacti/scripts/unix_processes.pl, output: U
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Time: 0.0233 s, Theads: N/A, Hosts: 1
I updated every Data Input method to have /usr/bin/perl so that I didnt get so many sh: /perl: No such file
If I run /usr/bin/perl /var/www/vhosts/avenfeld.com/httpdocs/cacti/scripts/unix_users.pl it returns 2
Localhost Load average with Graph debug on shows the following:
Code: Select all
RRDTool Command:
/usr/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" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/vhosts/avenfeld.com/httpdocs/cacti/rra/localhost_load_1min_5.rrd":load_1min:AVERAGE \
DEF:b="/var/www/vhosts/avenfeld.com/httpdocs/cacti/rra/localhost_load_1min_5.rrd":load_5min:AVERAGE \
DEF:c="/var/www/vhosts/avenfeld.com/httpdocs/cacti/rra/localhost_load_1min_5.rrd":load_15min:AVERAGE \
CDEF:cdefg=TIME,1245293939,GT,a,a,UN,0,a,IF,IF,TIME,1245293939,GT,b,b,UN,0,b,IF,IF,TIME,1245293939,GT,c,c,UN,0,c,IF,IF,+,+ \
AREA:a#EACC00FF:"1 Minute Average" \
GPRINT:a:LAST:" Current\:%8.2lf\n" \
AREA:b#EA8F00FF:"5 Minute Average":STACK \
GPRINT:b:LAST:" Current\:%8.2lf\n" \
AREA:c#FF0000FF:"15 Minute Average":STACK \
GPRINT:c:LAST:"Current\:%8.2lf\n" \
LINE1:cdefg#000000FF:""
RRDTool Says:
ERROR: opening '/var/www/vhosts/avenfeld.com/httpdocs/cacti/rra/localhost_load_1min_5.rrd': No such file or directory
If I run php Poller.php I get the following
Code: Select all
-sh-3.2$ php poller.php
06/17/2009 08:43:51 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '230', Max Runtime '298', Poller Runs: '1'
06/17/2009 08:43:51 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/var/www/vhosts/avenfeld.com/httpdocs/cacti/cmd.php" 0 0]
sh: /test: No such file or directory
06/17/2009 08:43:51 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/var/www/vhosts/avenfeld.com/httpdocs/cacti/cmd.php" 1 1]
sh: /test: No such file or directory
PHP Warning: putenv(): Safe Mode warning: Cannot set environment variable 'RRD_DEFAULT_FONT' - it's not in the allowed list in /var/www/vhosts/avenfeld.com/httpdocs/cacti/lib/rrd.php on line 37
Waiting on 2/2 pollers.
sh: /rrdtool: No such file or directory
Waiting on 2/2 pollers.
Waiting on 2/2 pollers.
Waiting on 2/2 pollers.
Waiting on 2/2 pollers.
Waiting on 2/2 pollers.
Waiting on 2/2 pollers.
Waiting on 2/2 pollers.
Cacti log shows the following:
Code: Select all
06/17/2009 08:40:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/var/www/vhosts/avenfeld.com/httpdocs/cacti/cmd.php" 1 1]
06/17/2009 08:40:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/var/www/vhosts/avenfeld.com/httpdocs/cacti/cmd.php" 0 0]
06/17/2009 08:40:01 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'
06/17/2009 08:40:00 PM - SYSTEM STATS: Time:298.8125 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:0
06/17/2009 08:40:00 PM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
06/17/2009 08:38:56 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/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" --slope-mode --font TITLE:12: --font AXIS:8: --font LEGEND:10: --font UNIT:8: DEF:a="/var/www/vhosts/avenfeld.com/httpdocs/cacti/rra/localhost_load_1min_5.rrd":load_1min:AVERAGE DEF:b="/var/www/vhosts/avenfeld.com/httpdocs/cacti/rra/localhost_load_1min_5.rrd":load_5min:AVERAGE DEF:c="/var/www/vhosts/avenfeld.com/httpdocs/cacti/rra/localhost_load_1min_5.rrd":load_15min:AVERAGE CDEF:cdefg=TIME,1245296036,GT,a,a,UN,0,a,IF,IF,TIME,1245296036,GT,b,b,UN,0,b,IF,IF,TIME,1245296036,GT,c,c,UN,0,c,IF,IF,+,+ AREA:a#EACC00FF:"1 Minute Average" GPRINT:a:LAST:" Current\:%8.2lf\n" AREA:b#EA8F00FF:"5 Minute Average":STACK GPRINT:b:LAST:" Current\:%8.2lf\n" AREA:c#FF0000FF:"15 Minute Average":STACK GPRINT:c:LAST:"Current\:%8.2lf\n" LINE1:cdefg#000000FF:""
06/17/2009 08:38:56 PM - WEBLOG: Poller[0] CACTI2RRD: /usr/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" --slope-mode --font TITLE:12: --font AXIS:8: --font LEGEND:10: --font UNIT:8: DEF:a="/var/www/vhosts/avenfeld.com/httpdocs/cacti/rra/localhost_load_1min_5.rrd":load_1min:AVERAGE DEF:b="/var/www/vhosts/avenfeld.com/httpdocs/cacti/rra/localhost_load_1min_5.rrd":load_5min:AVERAGE DEF:c="/var/www/vhosts/avenfeld.com/httpdocs/cacti/rra/localhost_load_1min_5.rrd":load_15min:AVERAGE CDEF:cdefg=TIME,1245296036,GT,a,a,UN,0,a,IF,IF,TIME,1245296036,GT,b,b,UN,0,b,IF,IF,TIME,1245296036,GT,c,c,UN,0,c,IF,IF,+,+ AREA:a#EACC00FF:"1 Minute Average" GPRINT:a:LAST:" Current\:%8.2lf\n" AREA:b#EA8F00FF:"5 Minute Average":STACK GPRINT:b:LAST:" Current\:%8.2lf\n" AREA:c#FF0000FF:"15 Minute Average":STACK GPRINT:c:LAST:"Current\:%8.2lf\n" LINE1:cdefg#000000FF:""
06/17/2009 08:38:11 PM - POLLER: Poller[0] NOTE: Cron is configured to run too often! The Poller Interval is '300' seconds, with a minimum Cron period of '300' seconds, but only 190 seconds have passed since the poller last ran.
06/17/2009 08:38:11 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '190', Max Runtime '298', Poller Runs: '1'
06/17/2009 08:35:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/var/www/vhosts/avenfeld.com/httpdocs/cacti/cmd.php" 1 1]
06/17/2009 08:35:01 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/var/www/vhosts/avenfeld.com/httpdocs/cacti/cmd.php" 0 0]
06/17/2009 08:35:01 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'
06/17/2009 08:35:00 PM - SYSTEM STATS: Time:298.8463 Method:cmd.php Processes:1 Threads:N/A Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
06/17/2009 08:35:00 PM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] ERROR: Detected RRDtool Crash attempting to perform write
06/17/2009 08:32:06 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/vhosts/avenfeld.com/httpdocs/cacti/rra/localhost_proc_7.rrd --template proc N:U
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] ERROR: Detected RRDtool Crash attempting to perform write
06/17/2009 08:32:06 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /var/www/vhosts/avenfeld.com/httpdocs/cacti/rra/localhost_proc_7.rrd --step 300 DS:proc:GAUGE:600:0:1000 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
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] ERROR: Detected RRDtool Crash attempting to perform write
06/17/2009 08:32:06 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/vhosts/avenfeld.com/httpdocs/cacti/rra/localhost_mem_buffers_3.rrd --template mem_buffers N:U
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] ERROR: Detected RRDtool Crash attempting to perform write
06/17/2009 08:32:06 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /var/www/vhosts/avenfeld.com/httpdocs/cacti/rra/localhost_mem_buffers_3.rrd --step 300 DS:mem_buffers:GAUGE:600:0:U 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
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] ERROR: Detected RRDtool Crash attempting to perform write
06/17/2009 08:32:06 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/vhosts/avenfeld.com/httpdocs/cacti/rra/localhost_mem_swap_4.rrd --template mem_swap N:U
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] ERROR: Detected RRDtool Crash attempting to perform write
06/17/2009 08:32:06 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /var/www/vhosts/avenfeld.com/httpdocs/cacti/rra/localhost_mem_swap_4.rrd --step 300 DS:mem_swap:GAUGE:600:0:U 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
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] ERROR: Detected RRDtool Crash attempting to perform write
06/17/2009 08:32:06 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/vhosts/avenfeld.com/httpdocs/cacti/rra/localhost_load_1min_5.rrd --template N:U
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] ERROR: Detected RRDtool Crash attempting to perform write
06/17/2009 08:32:06 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /var/www/vhosts/avenfeld.com/httpdocs/cacti/rra/localhost_load_1min_5.rrd --step 300 DS:load_1min:GAUGE:600:0:500 DS:load_5min:GAUGE:600:0:500 DS:load_15min:GAUGE:600:0:500 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
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] ERROR: Detected RRDtool Crash attempting to perform write
06/17/2009 08:32:06 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/www/vhosts/avenfeld.com/httpdocs/cacti/rra/localhost_users_6.rrd --template users N:U
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] ERROR: Detected RRDtool Crash attempting to perform write
06/17/2009 08:32:06 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /var/www/vhosts/avenfeld.com/httpdocs/cacti/rra/localhost_users_6.rrd --step 300 DS:users:GAUGE:600:0:500 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
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Time: 0.0233 s, Theads: N/A, Hosts: 1
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] DS[7] CMD: /usr/bin/perl /var/www/vhosts/avenfeld.com/httpdocs/cacti/scripts/unix_processes.pl, output: U
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] DS[7] WARNING: Result from CMD not valid. Partial Result: U
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] DS[6] CMD: /usr/bin/perl /var/www/vhosts/avenfeld.com/httpdocs/cacti/scripts/unix_users.pl , output: U
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] DS[6] WARNING: Result from CMD not valid. Partial Result: U
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] DS[5] CMD: /usr/bin/perl /var/www/vhosts/avenfeld.com/httpdocs/cacti/scripts/loadavg_multi.pl, output: U
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] DS[5] WARNING: Result from CMD not valid. Partial Result: U
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] DS[4] CMD: /usr/bin/perl /var/www/vhosts/avenfeld.com/httpdocs/cacti/scripts/linux_memory.pl SwapFree:, output: U
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] DS[4] WARNING: Result from CMD not valid. Partial Result: U
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] DS[3] CMD: /usr/bin/perl /var/www/vhosts/avenfeld.com/httpdocs/cacti/scripts/linux_memory.pl MemFree:, output: U
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] DS[3] WARNING: Result from CMD not valid. Partial Result: U
06/17/2009 08:32:06 PM - CMDPHP: Poller[0] Host[1] SNMP: Host responded to SNMP
My php is not in safe mode (set through plesk, perl is enabled) here is my custom php.ini in the httpdocs folder of the domain
Code: Select all
output_buffering = Off
zlib.output_compression = On
max_execution_time = 60
max_input_time = 90
error_reporting = E_ALL
register_long_arrays = Off
post_max_size = 130M
session.gc_maxlifetime = 2400
magic_quotes_gpc = On
upload_max_filesize = 128M
upload_tmp_dir = "/tmp"
session.save_path = "/tmp"
memory_limit = 64M
display_errors = Off
file_uploads = On
I know there are alot of topics on this problem, I spent 2 days reading them all (or at least most) any help at all would be greatly appreciated