Module: check_mk
Branch: master
Commit: 2ec3149a8c81439d7bfac3ca2c484f59d11d5993
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2ec3149a8c8143…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Sep 13 11:56:06 2018 +0200
lnx_if: Fixed node_info being "None" instead of None for non cluster hosts
Change-Id: Ia8feeb675ea58c608d5a47e98d573bfb7382563d
---
checks/lnx_if | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/checks/lnx_if b/checks/lnx_if
index e335778..2eb9d8c 100644
--- a/checks/lnx_if
+++ b/checks/lnx_if
@@ -205,11 +205,14 @@ def parse_lnx_if(info):
else:
ifPhysAddress = ''
- if_table.append(map(str, [
- node_info, ifIndex, ifDescr, ifType, ifSpeed, ifOperStatus,
+
+ row = [ node_info ] + map(str, [
+ ifIndex, ifDescr, ifType, ifSpeed, ifOperStatus,
ifInOctets, inucast, inmcast, inbcast, ifInDiscards,
ifInErrors, ifOutOctets, outucast, outmcast, outbcast,
- ifOutDiscards, ifOutErrors, ifOutQLen, ifAlias, ifPhysAddress ]))
+ ifOutDiscards, ifOutErrors, ifOutQLen, ifAlias, ifPhysAddress ])
+
+ if_table.append(row)
return if_table