From 6e61ae28f39e52e741833c843d1b6e49e1699e09 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Wed, 4 Dec 2013 20:47:38 +0100 Subject: A malfunction is always critical --- pellematic-switches | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pellematic-switches b/pellematic-switches index f8b6563..fc5e8ab 100755 --- a/pellematic-switches +++ b/pellematic-switches @@ -67,6 +67,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) def fetch_raw(url): # Perform authentication and get the cookie -- cgit v1.2.3