im having trouble getting this to work. Im using cacti 0.8.7b on ubuntu.
i installed the script and templates as described making changes described above for debian system.
i get all the proper output from apcaccess yet my graph shows up with no data.
my poller status gives this line:
Code:
10/20/2008 10:10:01 AM - CMDPHP: Poller[0] Host[1] DS[27] WARNING: Result from CMD not valid. Partial Result:
and my data source debug gives this:
Code:
/usr/bin/rrdtool create \
/var/lib/cacti/rra/localhost_line_freq_27.rrd \
--step 300 \
DS:line_freq:GAUGE:600:0:100 \
DS:bat_volt:GAUGE:600:0:100 \
DS:b_charge:GAUGE:600:0:100 \
DS:time_left:GAUGE:600:0:500 \
DS:line_volt:GAUGE:600:0:220 \
DS:int_temp:GAUGE:600:0:200 \
DS:load_pct:GAUGE:600:0:100 \
RRA:AVERAGE:0.5:1: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:500 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
when i run the chech_ups.sh script from commandline it returns this error:
Code:
/usr/share/cacti/site/scripts/apcupsd.pl: line 6: syntax error near unexpected token `)'
/usr/share/cacti/site/scripts/apcupsd.pl: line 6: `while(<STDIN>) { '
anyone know whats going on? would love to get this working.