Module: check_mk
Branch: master
Commit: 77d58122ce9426a6aa3756867ca34020bf230269
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=77d58122ce9426…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Sep 16 10:34:30 2015 +0200
adapted juniper_alarm check: do not discover if alarm is unavailable
---
checks/juniper_alarm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/checks/juniper_alarm b/checks/juniper_alarm
index c5aaf8f..7f1d098 100644
--- a/checks/juniper_alarm
+++ b/checks/juniper_alarm
@@ -28,7 +28,8 @@
def inventory_juniper_alarm(info):
- return [ (None, None) ]
+ if info[0][0] != "1":
+ return [ (None, None) ]
def check_juniper_alarm(item, params, info):