Module: check_mk
Branch: master
Commit: a01c99fc4fe5360db78a16842e39eefec5915d67
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a01c99fc4fe536…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Nov 25 11:54:24 2014 +0100
#1548 FIX bluecat_ntp: do not inventorized devices where NTP information is missing
---
.werks/1548 | 10 ++++++++++
ChangeLog | 1 +
checks/bluecat_ntp | 3 ++-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/1548 b/.werks/1548
new file mode 100644
index 0000000..215be9d
--- /dev/null
+++ b/.werks/1548
@@ -0,0 +1,10 @@
+Title: bluecat_ntp: do not inventorized devices where NTP information is missing
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.5i7
+Date: 1416912842
+
+
diff --git a/ChangeLog b/ChangeLog
index bc3f9df..229af5d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -39,6 +39,7 @@
* 1515 FIX: cisco_secure: fix service description, fix OK state in case of no
violation
* 1449 FIX: nginx_status: agent plugin no longer honours "http(s)_proxy"
env variables of root user
* 1532 FIX: mk_sap: Cleaning up old state information from sap.state file...
+ * 1548 FIX: bluecat_ntp: do not inventorized devices where NTP information is
missing
Multisite:
* 1508 Allow input of plugin output and perfdata when faking check results...
diff --git a/checks/bluecat_ntp b/checks/bluecat_ntp
index 7f90e00..b76b87b 100644
--- a/checks/bluecat_ntp
+++ b/checks/bluecat_ntp
@@ -33,7 +33,8 @@ factory_settings["bluecat_ntp"] = {
}
def inventory_bluecat_ntp(info):
- return [(None, None)]
+ if len(info) > 0 and info[0][0] != 'NULL':
+ return [(None, None)]
def check_bluecat_ntp(item, params, info):
oper_state, sys_leap, stratum = map(int, info[0])