Module: check_mk
Branch: master
Commit: ba2220c6bbcb0bb914a471a707d467ed10c3c291
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ba2220c6bbcb0b…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Wed Feb 15 18:08:48 2017 +0100
4346 FIX cisco_cpu_multiitem, cisco_cpu: Make checks mutually exclusive
Both of these checks being discovered on a device would lead to duplicate
services. This has been fixed.
Change-Id: Ibcd3ab9e560782f97a84097fc71dcda7b8709878
---
.werks/4346 | 11 +++++++++++
checks/cisco_cpu_multiitem | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/4346 b/.werks/4346
new file mode 100644
index 0000000..f58921c
--- /dev/null
+++ b/.werks/4346
@@ -0,0 +1,11 @@
+Title: cisco_cpu_multiitem, cisco_cpu: Make checks mutually exclusive
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.5.0i1
+Date: 1487178458
+
+Both of these checks being discovered on a device would lead to duplicate
+services. This has been fixed.
diff --git a/checks/cisco_cpu_multiitem b/checks/cisco_cpu_multiitem
index e5aa1ae..471dc47 100644
--- a/checks/cisco_cpu_multiitem
+++ b/checks/cisco_cpu_multiitem
@@ -87,5 +87,5 @@ check_info["cisco_cpu_multiitem"] = {
'1.7', # entPhysicalName
])],
'snmp_scan_function' : lambda oid: 'cisco' in
oid('.1.3.6.1.2.1.1.1.0').lower() and \
- oid('.1.3.6.1.4.1.9.9.109.1.1.1.*') !=
None,
+ oid('.1.3.6.1.4.1.9.9.109.1.1.1.*') ==
None,
}