APC UPS
Since a short time I have a UPS. Unfortunatly these things are
needed in Australia. I can access the UPS with the tools of apcupsd. One of the values I can
measure is the line-voltage. It should be 240 Volts, but it fluctuates
between 219 and 252 Volts.
Setup RRD
I've created an RRD database
with an interval of five minutes.
[~/apc] edwin@k7>rrdtool create apc -s 300 DS:line:GAUGE:600:U:U \
RRA:MIN:0.5:1:2400 RRA:MAX:0.5:1:2400 RRA:AVERAGE:0.5:1:2400
Measure
A crontab is setup to measure the line-voltage:
[~/apc] edwin@k7>cat ../bin/crontab-apc
#!/bin/sh
S=`apcaccess status | grep LINEV | head -1 | awk '{ print $3 }'`
rrdtool update apc N:$S
Creating graphs
This creates a three day graph of the data.
[~/apc] edwin@k7>rrdtool graph apcups-linevoltage.gif --start now-3d \
--vertical-label "Volts" --title "APC Line Voltage" \
DEF:min=apc:line:MIN DEF:max=apc:line:MAX \
LINE1:min#0000AA:"Minimum voltage" LINE1:max#00AA00:"Maximum voltage"
495x155
Output
|