Module: check_mk
Branch: master
Commit: 25d8ee3e81c32cf0938a03c11e0d3e5567486276
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=25d8ee3e81c32c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jan 19 12:26:29 2012 +0100
lnx_if check returns an empty mac all the time
---
checks/lnx_if | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/checks/lnx_if b/checks/lnx_if
index 773f927..8940bdc 100644
--- a/checks/lnx_if
+++ b/checks/lnx_if
@@ -128,11 +128,14 @@ def if_lnx_convert_to_if64(info):
else:
ifOperStatus = 4 # unknown (NIC has never been used)
+ # There is no mac adress data available for the moment
+ ifPhysAddress = ''
+
if_table.append(map(str, [
ifIndex, ifDescr, ifType, ifSpeed, ifOperStatus,
ifInOctets, inucast, inmcast, inbcast, ifInDiscards,
ifInErrors, ifOutOctets, outucast, outmcast, outbcast,
- ifOutDiscards, ifOutErrors, ifOutQLen, ifAlias ]))
+ ifOutDiscards, ifOutErrors, ifOutQLen, ifAlias, ifPhysAddress ]))
return if_table