Module: check_mk
Branch: master
Commit: a5cf793d9310ec536044c30df2ac277aaefa89c8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a5cf793d9310ec…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Oct 15 15:37:57 2014 +0200
#1128 FIX bluecat_dns: now reports UNKNOWN if no snmp data is available
---
.werks/1128 | 9 +++++++++
ChangeLog | 1 +
checks/bluecat_dns | 4 +++-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/1128 b/.werks/1128
new file mode 100644
index 0000000..826aa29
--- /dev/null
+++ b/.werks/1128
@@ -0,0 +1,9 @@
+Title: bluecat_dns: now reports UNKNOWN if no snmp data is available
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.5i6
+Date: 1413380242
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 5ee719d..5b94013 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -108,6 +108,7 @@
* 1078 FIX: Fix compensation for daylight safing time in prediction
* 1126 FIX: bluecat_ntp: check no longer crashes on evaluating sysLeap values higher
than 1...
* 1127 FIX: bluecat_dhcp: fixed exception when data was available.. returns UNKNOWN
when data is missing
+ * 1128 FIX: bluecat_dns: now reports UNKNOWN if no snmp data is available
Multisite:
* 1066 Implemented Dashboard Designer...
diff --git a/checks/bluecat_dns b/checks/bluecat_dns
index 4515454..8e25614 100644
--- a/checks/bluecat_dns
+++ b/checks/bluecat_dns
@@ -43,7 +43,9 @@ def check_bluecat_dns(item, params, info):
5 : "fault"
}
- state = 0
+ if not info:
+ return
+
for line in info:
oper_state = int(line[0])
if oper_state in params['oper_states']['warning']: