Module: check_mk
Branch: master
Commit: 3ff1a471f8e3a2fedbd428ab12d8a7607f67ade2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3ff1a471f8e3a2…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jan 19 12:18:30 2012 +0100
Made if check aware of new MAC address handling
---
checks/if | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/checks/if b/checks/if
index 3938941..1691f6b 100644
--- a/checks/if
+++ b/checks/if
@@ -33,7 +33,7 @@ def check_if(item, params, info):
def if_convert_to_if64(info):
newinfo = []
for line in info:
- newinfo.append(line[0:8] + ['0'] + line[8:12] + ['0'] +
line[12:16] + line[1:2])
+ newinfo.append(line[0:8] + ['0'] + line[8:12] + ['0'] +
line[12:16] + line[1:2] + line[16:17])
return newinfo
check_info['if'] = (check_if, "Interface %s", 1, inventory_if)
@@ -59,6 +59,7 @@ snmp_info['if'] = \
19, # ifOutDiscards 13
20, # ifOutErrors 14
21, # ifOutQLen 15
+ 6, # ifPhysAddress 16
] )
# check if number of network interfaces (IF-MIB::ifNumber.0) is at least 2