aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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