I have a problem with sarparse.pl script and cacti, the sar graph not update to the poller but it's ok manually.
cacti version : 0.8.7g
my system user : www-data
By Sarparse.pl script user www-data :
By cacti poller with cron "www-data php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log":$ perl sarparse.pl localhost
procs:0,00 cswchs:58,00 CPU:all user:0,00 nice:0,00 system:0,00 iowait:0,00 steal:0,00 idle:100,00 pgpgins:0,00 pgpgouts:0,00 faults:0,00 majflts:0,00 pgfrees:0,00 pgscanks:0,00 pgscands:0,00 pgsteals:0,00 vmeff:0,00 kbmemfree:7173912 kbmemused:1007460 memused:12,31 kbbuffers:137612 kbcached:502320 kbswpfree:2095096 kbswpused:0 swpused:0,00 kbswpcad:0 dentunusd:38210 file_sz:896 inode_sz:35042 pty_sz:34 totsck:0 tcpsck:0 udpsck:0 rawsck:0 ip_frag:0 tcp_tw:0 runq_sz:0 plist_sz:234 ldavg_1:0,00 ldavg_5:0,00 ldavg_15:0,00
By manually poller with user www-data:02/23/2011 11:50:06 AM - CMDPHP: Poller[0] Host[2] DS[45] WARNING: Result from CMD not valid. Partial Result: U
02/23/2011 11:50:06 AM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/rra/localhost_dentunusd_44.rrd --template 1298458201:U
02/23/2011 11:50:05 AM - CMDPHP: Poller[0] Host[2] DS[44] CMD: perl /usr/share/cacti/site/scripts/sarparse.pl 127.0.0.1, output: U
I need some help/23/2011 12:04:58 PM - CMDPHP: Poller[0] Host[2] DS[45] CMD: perl /usr/share/cacti/site/scripts/sarparse.pl 127.0.0.1, output: procs:0,00 cswchs:90,28 CPU:all user:0,31 nice:0,00 system:0,00 iowait:0,00 steal:0,00 idle:99,69 pgpgins:0,00 pgpgouts:0,00 faults:0,00 majflts:0,00 pgfrees:0,00 pgscanks:0,00 pgscands:0,00 pgsteals:0,00 vmeff:0,00 kbmemfree:7141540 kbmemused:1039832 memused:12,71 kbbuffers:138076 kbcached:502684 kbswpfree:2095096 kbswpused:0 swpused:0,00 kbswpcad:0 dentunusd:38422 file_sz:1152 inode_sz:35281 pty_sz:34 totsck:0 tcpsck:0 udpsck:0 rawsck:0 ip_frag:0 tcp_tw:0 runq_sz:0 plist_sz:238 ldavg_1:0,20 ldavg_5:0,05 ldavg_15:0,01
02/23/2011 12:04:58 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /var/lib/cacti/rra/localhost_dentunusd_44.rrd --template dentunusd 1298459093:38422
02/23/2011 12:04:58 PM - POLLER: Poller[0] Parsed MULTI output field 'dentunusd:38422' [map dentunusd->dentunusd]
Thanks