Module: check_mk
Branch: master
Commit: 51ef7175ae504484253ba3e9012867e50e7e9cd9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=51ef7175ae5044…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 15 16:50:22 2016 +0100
Fixed duplicate definition of function fix_if_64_highspeed()
---
checks/if.include | 7 +++++++
checks/if_brocade | 5 -----
checks/if_lancom | 5 -----
3 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/checks/if.include b/checks/if.include
index 26c19d4..89d8a26 100644
--- a/checks/if.include
+++ b/checks/if.include
@@ -59,6 +59,13 @@ if_disable_if64_hosts = [] # Binary host list for disabling if64 on
some broken
def if64_disabled(hostname):
return in_binary_hostlist(hostname, if_disable_if64_hosts)
+
+def fix_if_64_highspeed(info):
+ for line in info:
+ if type(line[3]) in [ str, unicode ]: # not yet converted
+ line[3] = saveint(line[3]) * 1000000
+
+
# Remove 0 bytes from strings. They lead to problems e.g. here:
# On windows hosts the labels of network interfaces in oid
# iso.3.6.1.2.1.2.2.1.2.1 are given as hex strings with tailing
diff --git a/checks/if_brocade b/checks/if_brocade
index 37b50e2..c6cc193 100644
--- a/checks/if_brocade
+++ b/checks/if_brocade
@@ -24,11 +24,6 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-def fix_if_64_highspeed(info):
- for line in info:
- if type(line[3]) in [ str, unicode ]: # not yet converted
- line[3] = saveint(line[3]) * 1000000
-
def if_brocade_convert(info):
iftab, ssidtab = info
ssid_dict = dict(ssidtab)
diff --git a/checks/if_lancom b/checks/if_lancom
index 9c9b035..15f3c4b 100644
--- a/checks/if_lancom
+++ b/checks/if_lancom
@@ -24,11 +24,6 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-def fix_if_64_highspeed(info):
- for line in info:
- if type(line[3]) in [ str, unicode ]: # not yet converted
- line[3] = saveint(line[3]) * 1000000
-
def if_lancom_convert(info):
iftab, ssidtab = info
ssid_dict = dict(ssidtab)