Module: check_mk
Branch: master
Commit: 5e91689e66cd56bcd3d7145e250dd700cdc649f1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5e91689e66cd56…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Tue Dec 19 11:04:44 2017 +0100
5527 FIX ucd_mem, hr_mem: Prefer ucd_mem check for certain Cisco IronPort models
For certain Cisco IronPort devices, the OIDs defined in the Host Resources MIB
provide bogus data. This can be avoided by using the ucd_mem check instead for
these devices.
To benefit from this fix, the affected devices need to be rediscovered.
Change-Id: I21f023a14f0c8c420b57549fb1a033b22f727575
---
.werks/5527 | 15 +++++++++++++++
checks/ucd.include | 1 +
2 files changed, 16 insertions(+)
diff --git a/.werks/5527 b/.werks/5527
new file mode 100644
index 0000000..c468161
--- /dev/null
+++ b/.werks/5527
@@ -0,0 +1,15 @@
+Title: ucd_mem, hr_mem: Prefer ucd_mem check for certain Cisco IronPort models
+Level: 1
+Component: checks
+Class: fix
+Compatible: incomp
+Edition: cre
+State: unknown
+Version: 1.5.0i2
+Date: 1513677694
+
+For certain Cisco IronPort devices, the OIDs defined in the Host Resources MIB
+provide bogus data. This can be avoided by using the ucd_mem check instead for
+these devices.
+
+To benefit from this fix, the affected devices need to be rediscovered.
diff --git a/checks/ucd.include b/checks/ucd.include
index cffa43d..e205a4b 100644
--- a/checks/ucd.include
+++ b/checks/ucd.include
@@ -57,6 +57,7 @@ def hr_mem_scan_function(oid):
# of devices, which are known to report incorrect information
# about mem usage
return (not "pfsense" in oid(".1.3.6.1.2.1.1.1.0").lower() and \
+ not "ironport model c3" in
oid(".1.3.6.1.2.1.1.1.0").lower() and \
ignore_ucd_and_hr(oid)) or \
(oid(".1.3.6.1.2.1.25.1.1.0") and \
not ucd_scan_function(oid))