Module: check_mk
Branch: master
Commit: c3a4e34bed01c1f2d9276a938ad2d21eacbb5b6e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c3a4e34bed01c1…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Thu Mar 16 15:33:04 2017 +0100
4543 FIX cisco_cpu: Fixed too restrictive service discovery
Change-Id: I4533b7a434c360674cb91ec67e06ccea165daab1
---
.werks/4543 | 10 ++++++++++
checks/cisco_cpu | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/4543 b/.werks/4543
new file mode 100644
index 0000000..4c933b1
--- /dev/null
+++ b/.werks/4543
@@ -0,0 +1,10 @@
+Title: cisco_cpu: Fixed too restrictive service discovery
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1489674722
+Class: fix
+
+
diff --git a/checks/cisco_cpu b/checks/cisco_cpu
index a911b70..8f5040b 100644
--- a/checks/cisco_cpu
+++ b/checks/cisco_cpu
@@ -31,7 +31,7 @@ cisco_cpu_default_levels = (80.0, 90.0)
def inventory_cisco_cpu(info):
if info and \
- info[0][0].isdigit() and \
+ info[0][0].isdigit() or \
info[0][1].isdigit():
return [( None, 'cisco_cpu_default_levels') ]