Module: check_mk
Branch: master
Commit: 16ffc872cc1173d8f2423ae9b3165fa832b92d2b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=16ffc872cc1173…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri May 18 11:52:28 2018 +0200
6084 FIX apc_rackpdu_power: Do not discover services if device information is missing
Change-Id: Ibd9027c18e60f5bd83b8435e8dd0f1c9c5d117c9
---
.werks/6084 | 10 ++++++++++
checks/apc_rackpdu_power | 3 ++-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/6084 b/.werks/6084
new file mode 100644
index 0000000..1b485b6
--- /dev/null
+++ b/.werks/6084
@@ -0,0 +1,10 @@
+Title: apc_rackpdu_power: Do not discover services if device information is missing
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1526637125
+Class: fix
+
+
diff --git a/checks/apc_rackpdu_power b/checks/apc_rackpdu_power
index 7ea0368..81feb80 100644
--- a/checks/apc_rackpdu_power
+++ b/checks/apc_rackpdu_power
@@ -99,7 +99,8 @@ check_info["apc_rackpdu_power"] = {
'2', # PowerNet-MIB::rPDULoadStatusLoad
'3', #
PowerNet-MIB::rPDULoadStatusLoadState
])],
- 'snmp_scan_function' : lambda oid:
oid(".1.3.6.1.2.1.1.1.0").lower().startswith("apc web/snmp"),
+ 'snmp_scan_function' : lambda oid:
oid(".1.3.6.1.2.1.1.1.0").lower().startswith("apc web/snmp")\
+ and
oid(".1.3.6.1.4.1.318.1.1.12.1.*"),
'group' : 'el_inphase',
'includes' : [ 'elphase.include' ],
}