Module: check_mk
Branch: master
Commit: 3d7c1f8dc4915eef6e33ee03eaaad929a7b54102
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3d7c1f8dc4915e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Nov 25 11:58:02 2014 +0100
#1549 FIX bluecat_threads: do not inventorize this check where information is missing
This avoid UNKNOWN check results on devices where no thread information is
available.
---
.werks/1549 | 11 +++++++++++
ChangeLog | 1 +
checks/bluecat_threads | 3 ++-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/1549 b/.werks/1549
new file mode 100644
index 0000000..315bf35
--- /dev/null
+++ b/.werks/1549
@@ -0,0 +1,11 @@
+Title: bluecat_threads: do not inventorize this check where information is missing
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.5i7
+Date: 1416913048
+
+This avoid UNKNOWN check results on devices where no thread information is
+available.
diff --git a/ChangeLog b/ChangeLog
index 229af5d..9a22256 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -40,6 +40,7 @@
* 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
+ * 1549 FIX: bluecat_threads: do not inventorize this check where information is
missing...
Multisite:
* 1508 Allow input of plugin output and perfdata when faking check results...
diff --git a/checks/bluecat_threads b/checks/bluecat_threads
index 7b67507..49c2e32 100644
--- a/checks/bluecat_threads
+++ b/checks/bluecat_threads
@@ -28,7 +28,8 @@
threads_default_levels = (2000, 4000)
def inventory_bluecat_threads(info):
- return [(None, "threads_default_levels")]
+ if info:
+ return [(None, "threads_default_levels")]
def check_bluecat_threads(item, params, info):
nthreads = int(info[0][0])