From 39d101201a25563ac4c3b1e91f71e37bc5eca1e5 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 16 Jan 2015 15:08:20 +0100 Subject: Fix error reporting on pelletronic malfunction We didn't report the error due to wrong indentation _and_ a wrong field name. --- pellematic-switches | 6 +++--- 1 file 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 -- cgit v1.2.3