summaryrefslogtreecommitdiff
path: root/munin
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2006-04-28 16:18:20 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2006-04-28 16:18:20 +0000
commitfcf05fbece7a1de93276f035d6e7db5df09f707f (patch)
tree997e4629e0e3c94f5026e8148d1d430e46844a48 /munin
parent644fd197d78755e96b2ef4e51a9982b1ca77b196 (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')
-rwxr-xr-xmunin/ups_13
1 files changed, 8 insertions, 5 deletions
diff --git a/munin/ups_ b/munin/ups_
index 5b112c3..3c7e5e5 100755
--- a/munin/ups_
+++ b/munin/ups_
@@ -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
}