Module: check_mk
Branch: master
Commit: 34aa55a3b6dd560042dd18bb72df9d2acc82eb5a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=34aa55a3b6dd56…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Tue Feb 6 14:45:17 2018 +0100
5709 FIX apc_netbotz_sensors, apc_netbotz_other_sensors: Fix discovery for newer models
An overzealous SNMP scan function prevented discovery for newer models. This has been
fixed.
Thanks to Mathias Götze for the patch!
Change-Id: I64cafe15685d2de055232674d1b6d6a55942469b
---
.werks/5709 | 13 +++++++++++++
checks/apc_netbotz_other_sensors | 2 +-
checks/apc_netbotz_sensors | 2 +-
3 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/.werks/5709 b/.werks/5709
new file mode 100644
index 0000000..20af3dc
--- /dev/null
+++ b/.werks/5709
@@ -0,0 +1,13 @@
+Title: apc_netbotz_sensors, apc_netbotz_other_sensors: Fix discovery for newer models
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i3
+Date: 1517924598
+
+An overzealous SNMP scan function prevented discovery for newer models. This has been
fixed.
+
+Thanks to Mathias Götze for the patch!
diff --git a/checks/apc_netbotz_other_sensors b/checks/apc_netbotz_other_sensors
index 5d2674d..86e5dba 100644
--- a/checks/apc_netbotz_other_sensors
+++ b/checks/apc_netbotz_other_sensors
@@ -71,5 +71,5 @@ check_info['apc_netbotz_other_sensors'] = {
"7", #
NETBOTZV2-MIB::otherNumericSensorValueStr
]),
'snmp_scan_function' : lambda oid: \
-
oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.5528.100.20.10.2014"),
+
oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.5528.100.20.10"),
}
diff --git a/checks/apc_netbotz_sensors b/checks/apc_netbotz_sensors
index e22335a..aac99ee 100644
--- a/checks/apc_netbotz_sensors
+++ b/checks/apc_netbotz_sensors
@@ -166,7 +166,7 @@ check_info['apc_netbotz_sensors'] = {
# empty if sensor is not plugged in
]),
'snmp_scan_function' : lambda oid: \
-
oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.5528.100.20.10.2014"),
+
oid(".1.3.6.1.2.1.1.2.0").startswith(".1.3.6.1.4.1.5528.100.20.10"),
'default_levels_variable' :
'apc_netbotz_sensors_temp_default_levels',
'group' : "temperature",
'includes' : [ 'temperature.include' ],