aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-10-13 10:36:50 +0200
committerGuido Günther <agx@sigxcpu.org>2013-10-13 10:36:50 +0200
commitfa94c856481085187616db3a73fa90424adada72 (patch)
treede133a82422172741e00ca6d075835eff773c00e
parent68e028d510b2e232d5889cc457b089f0324b2f55 (diff)
Add fan speeds to pump graph
-rwxr-xr-xpellematic-pumps11
1 files changed, 9 insertions, 2 deletions
diff --git a/pellematic-pumps b/pellematic-pumps
index e24a4b1..e79b381 100755
--- a/pellematic-pumps
+++ b/pellematic-pumps
@@ -1,7 +1,7 @@
#!/usr/bin/python
# vim: set fileencoding=utf-8 :
#
-# Munin plugin to monitor the temperature values
+# Munin plugin to monitor the pumps and fan speeds
# of a pelletronic/pelletronic touch 2.0
#
# Copyright 2013 Guido Guenther <agx@sigxcpu.org>
@@ -28,17 +28,24 @@ debug = os.getenv('debug')
# The items we want to plot:
items = ["CAPPL:LOCAL.L_hk[0].pumpe",
"CAPPL:LOCAL.L_pu[0].pumpe",
+ "CAPPL:FA[0].L_luefterdrehzahl",
+ "CAPPL:FA[0].L_saugzugdrehzahl",
]
def canon(name):
return re.sub(r"[^a-zA-Z0-9_]", "_", name)
def fixup_name(item):
+ name = None
if ".L_pu[" in item['name']:
name = "Buffer Load Pump %d"
elif ".L_hk[" in item['name']:
name = "Heat Circuit Pump %d"
- return name % (int(item['name'].split('.')[-2][-2]) + 1)
+ if name:
+ name = name % (int(item['name'].split('.')[-2][-2]) + 1)
+ else:
+ name = item['shortText']
+ return name
def percent_val(item):
if item['unitText'] == '%':