aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-01-16 15:08:20 +0100
committerGuido Günther <agx@sigxcpu.org>2015-01-16 15:08:20 +0100
commit39d101201a25563ac4c3b1e91f71e37bc5eca1e5 (patch)
tree6fec4e825d6de22a25dd5c51f696bd5dfcca97d4
parente85bd6b8716a6fb6245c03808c26b106481b0162 (diff)
Fix error reporting on pelletronic malfunction
We didn't report the error due to wrong indentation _and_ a wrong field name.
-rwxr-xr-xpellematic-switches6
1 files changed, 3 insertions, 3 deletions
diff --git a/pellematic-switches b/pellematic-switches
index 0dcb01d..0b4ab4a 100755
--- a/pellematic-switches
+++ b/pellematic-switches
@@ -91,9 +91,9 @@ graph_info This graph shows the values for different on/off switches
print "%s.draw %s" % (canon(name), draw)
if draw == "AREA":
draw = "STACK"
- if 'stoermelderelais' in item['name']:
- print "%s.warning 0.1" % canon(name)
- print "%s.critical 1" % canon(name)
+ if 'Malfunction' in name:
+ print "%s.warning 0.1" % canon(name)
+ print "%s.critical 1" % canon(name)
def fetch_raw(url):
# Perform authentication and get the cookie