diff options
author | Peter Palfrader <peter@palfrader.org> | 2006-04-28 16:18:20 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2006-04-28 16:18:20 +0000 |
commit | fcf05fbece7a1de93276f035d6e7db5df09f707f (patch) | |
tree | 997e4629e0e3c94f5026e8148d1d430e46844a48 /munin/ups_ | |
parent | 644fd197d78755e96b2ef4e51a9982b1ca77b196 (diff) |
change AC frequency to input and output frequency
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@70 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
Diffstat (limited to 'munin/ups_')
-rwxr-xr-x | munin/ups_ | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -11,6 +11,7 @@ # 2006-04-28 Peter Palfrader: # - add runtime and temperature graphs # - append @localhost to UPS variable +# - change AC frequency to input and output frequency # # usage: ups_upsid_function # @@ -89,12 +90,14 @@ function frequency() { echo "graph_title $UPS input AC frequency" echo "graph_args --base 1000 -l 0" echo "graph_vlabel frequency 1/s" - echo "acfreq.label AC frequency" - echo "acfreq.type GAUGE" - echo "acfreq.max 100" - echo "acfreq.min 5" + for i in input output; do + echo "${i}.label ${i} frequency" + echo "${i}.type GAUGE" + echo "${i}.max 100" + echo "${i}.min 5" + done else - upsc $UPS | sed -n '/freq/{s/.*:/acfreq.value/;p}' + upsc $UPS | sed -n '/frequency/{s/frequency:/value/;p}' fi } |