aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2014-12-25 11:42:42 +0100
committerGuido Günther <agx@sigxcpu.org>2014-12-25 11:42:42 +0100
commit2e168ce19c36e87e531b075d36043598ff810fb5 (patch)
treedcb13b065720ee32fe28057a8052868021c7d0ae
parent35eae640a1f8db168b21faca590c2b5c2c8731dc (diff)
Record on/off time too
-rwxr-xr-xpellematic-time10
1 files changed, 10 insertions, 0 deletions
diff --git a/pellematic-time b/pellematic-time
index 3ccdf05..c68e549 100755
--- a/pellematic-time
+++ b/pellematic-time
@@ -46,6 +46,14 @@ coefficient.type GAUGE
coefficient.draw LINE1
coefficient.warning 0.9
coefficient.critical 0.95
+
+ontime.label burner on hours
+ontime.type GAUGE
+ontime.graph no
+
+offtime.label burner off hours
+offtime.type GAUGE
+offtime.graph no
"""
def fetch_raw(url):
@@ -102,6 +110,8 @@ def fetch_values(url):
on = float(item['value'])
print "coefficient.value %f" % (on/off)
+ print "ontime.value %f" % on
+ print "offtime.value %f" % off