diff options
author | Guido Günther <agx@sigxcpu.org> | 2013-12-04 20:47:38 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-12-04 22:12:22 +0100 |
commit | 6e61ae28f39e52e741833c843d1b6e49e1699e09 (patch) | |
tree | 6edf6b9b5912d4938fc1433bc04aa4f56fd17124 | |
parent | 0878bcf1e41c747ae24c820c471065491feaca80 (diff) |
A malfunction is always critical
-rwxr-xr-x | pellematic-switches | 3 |
1 files changed, 3 insertions, 0 deletions
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 |