the script i am using is http://forums.cacti.net/viewtopic.php?t ... t=proc_cnt
If i run the script from the command line i get the proper number of processes running
Code: Select all
# sh proc_cnt.sh ftpsecure
3
Code: Select all
# tail -f cacti.log |grep 'proc_cnt\|DS\[25\]'
06/24/2008 10:55:03 AM - CMDPHP: Poller[0] Host[1] DS[25] WARNING: Result from CMD not valid. Partial Result:
06/24/2008 10:55:03 AM - CMDPHP: Poller[0] Host[1] DS[25] CMD: /usr/local/share/cacti/scripts/proc_cnt.sh ftpsecure, output: U
06/24/2008 10:55:03 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "insert into poller_output (local_data_id, rrd_name, time, output) values (25, 'proc_cnt', '2008-06-24 10:55:02', 'U')"
06/24/2008 10:55:03 AM - CMDPHP: Poller[0] DEBUG: SQL Exec: "delete from poller_output where local_data_id='25' and rrd_name='proc_cnt' and time='2008-06-24 10:55:02'"
06/24/2008 10:55:03 AM - POLLER: Poller[0] CACTI2RRD: /usr/local/bin/rrdtool update /usr/local/share/cacti/rra/less_cogeco_net_proc_cnt_25.rrd --template proc_cnt 1214319302:U
any ideas?