Module: check_mk
Branch: master
Commit: 156dc46674ec1b937a71a5e76971ede8a6cd1ec9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=156dc46674ec1b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Jul 30 15:39:30 2012 +0200
New format for output of vms_if
---
checks/vms_if | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/checks/vms_if b/checks/vms_if
index abcc3b6..620c067 100644
--- a/checks/vms_if
+++ b/checks/vms_if
@@ -37,7 +37,10 @@ def convert_vms_if(info):
ifIndex = 0
for line in info:
ifDescr = line[0]
- ifInOctets, ifInErrors, ifOutOctets, ifOutErrors, ifInDiscards =
map(wrap_negative, line[1:6])
+ ifInOctets, ifInUcastPkts, ifInMulticastPkts, ifInBroadcastPkts, \
+ ifInDiscards, ifInErrors, ifOutOctets, ifOutUcastPkts, \
+ ifOutMulticastPkts, ifOutBroadcastPkts, ifOutDiscards, ifOutErrors = \
+ map(wrap_negative, line[1:13])
ifIndex += 1
new_info.append((
@@ -47,16 +50,16 @@ def convert_vms_if(info):
'1000000000',# ifHighSpeed
'1', # ifOperStatus
ifInOctets,
- '0', # ifHCInUcastPkts
- '0', # ifHCInMulticastPkts
- '0', # ifHCInBroadcastPkts
+ ifInUcastPkts,
+ ifInMulticastPkts,
+ ifInBroadcastPkts,
ifInDiscards,
ifInErrors,
ifOutOctets,
- '0', # ifHCOutUcastPkts
- '0', # ifHCOutMulticastPkts
- '0', # ifHCOutBroadcastPkts
- '0', # ifOutDiscards
+ ifOutUcastPkts,
+ ifOutMulticastPkts,
+ ifOutBroadcastPkts,
+ ifOutDiscards,
ifOutErrors,
'0', # ifOutQLen
ifDescr,