Module: check_mk
Branch: master
Commit: ee9bb1f0cc6b23926a14ed3f5fab4d3b4e874fb3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ee9bb1f0cc6b23…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Thu Nov 22 11:18:42 2018 +0100
6754 FIX if_lancom: Fixed correct interface discovery for newer lancom router
Newer lancom devices to not authenticate himself as a lancom device in the
snmp info. This is fixed for now, so the sepcial check plugin for lancom
interfaces are working correctly again.
This change concerns at least the R800V series and a rediscovery may be needed.
Change-Id: I9fea100a0d777f23c54d3bb72543e17d82a1f1bc
---
.werks/6754 | 14 ++++++++++++++
checks/if_lancom | 3 ++-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/.werks/6754 b/.werks/6754
new file mode 100644
index 0000000..93a046c
--- /dev/null
+++ b/.werks/6754
@@ -0,0 +1,14 @@
+Title: if_lancom: Fixed correct interface discovery for newer lancom router
+Level: 1
+Component: checks
+Compatible: incomp
+Edition: cre
+Version: 1.6.0i1
+Date: 1542881754
+Class: fix
+
+Newer lancom devices to not authenticate himself as a lancom device in the
+snmp info. This is fixed for now, so the sepcial check plugin for lancom
+interfaces are working correctly again.
+
+This change concerns at least the R800V series and a rediscovery may be needed.
diff --git a/checks/if_lancom b/checks/if_lancom
index 61f8d0c..9b363ce 100644
--- a/checks/if_lancom
+++ b/checks/if_lancom
@@ -95,7 +95,8 @@ check_info["if_lancom"] = {
],
# check if number of network interfaces (IF-MIB::ifNumber.0) is at least 2
'snmp_scan_function': lambda oid: ("LANCOM" in
oid(".1.3.6.1.2.1.1.1.0") or "ELSA" in oid(
- ".1.3.6.1.2.1.1.1.0") or "T-Systems" in
oid(".1.3.6.1.2.1.1.1.0")) and (not if64_disabled(
+ ".1.3.6.1.2.1.1.1.0") or "T-Systems" in
oid(".1.3.6.1.2.1.1.1.0")) or "LAN R800V" in oid(
+ ".1.3.6.1.2.1.1.1.0") and (not if64_disabled(
host_name())) and oid(".1.3.6.1.2.1.31.1.1.1.6.*") is not None,
'group': 'if',
'default_levels_variable': 'if_default_levels',