PDA

View Full Version : UPS Graphing script problems



fedorafan2
18th December 2006, 02:36 AM
I have a ups connected through apcupsd and am trying to use the graphing setup in this how-to http://www.ecst.csuchico.edu/~dranch/LINUX/TrinityOS/cHTML/TrinityOS-c-36.html

When I run the script I get the following output:

[root@linux ~]# /usr/local/sbin/apcupsd-generate-ups-graph.sh
Beginning process to create graph for: Dec/16/06

Filtering original apcupsd.data file..
Deleteing old ps and pdf files..
Creating files..

gnuplot> plot "filtered-apcupsd.data" using 1:4 title 'LineMIN' with lines, "filtered-apcupsd.data" using 1:5 title 'LineMAX' with lines, "filtered-apcupsd.data" using 1:6 title 'OutV' with lines, "filtered-apcupsd.data" using 1:7 title 'BattV' with lines, "filtered-apcupsd.data" using 1:8 title 'LineFREQ' with lines, "filtered-apcupsd.data" using 1:9 title 'UPSload' with lines, "filtered-apcupsd.data" using 1:10 title 'UPStemp' with lines
^
"generate-apc-graph-Dec1606.gnuplot", line 17: all points y value undefined!

- done creating files
Creating /tmp/ups-log-Dec1606.ps..
ERROR: /rangecheck in --.peekstring--
Operand stack:
--nostringval-- --nostringval-- (% Co)
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop --nostringval--
Dictionary stack:
--dict:1119/1686(ro)(G)-- --dict:0/20(G)-- --dict:80/200(L)--
Current allocation mode is local
ESP Ghostscript 815.02: Unrecoverable error, exit code 1
Cleaning up..
Emailing graph..
You have new mail in /var/spool/mail/root



How can I fix it so I have it working?

fedorafan2
18th December 2006, 11:25 PM
Anyone??? Ideas Please