Module: check_mk
Branch: master
Commit: a220e0ef75aa76dcaad40c26431077e32a8fd4b2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a220e0ef75aa76…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Fri Jun 17 10:02:29 2016 +0200
Added comment
---
checks/esx_vsphere_counters | 3 +++
1 file changed, 3 insertions(+)
diff --git a/checks/esx_vsphere_counters b/checks/esx_vsphere_counters
index 2d72202..f911c1a 100644
--- a/checks/esx_vsphere_counters
+++ b/checks/esx_vsphere_counters
@@ -251,6 +251,7 @@ def convert_esx_counters_if(parsed):
nics = by_item.keys()
nics.sort()
+ # This is for the if Check
converted = [
[], # 0 ifIndex 0
[], # 1 ifDescr 1
@@ -274,6 +275,8 @@ def convert_esx_counters_if(parsed):
[], # 19 ifPhysAddress 19
]
+ # This is for mapping the incoming ESX counter data to table indeces above
+ # These can be passed directly to if
tableindex = {
'bytesRx': 5, # is in Kilobytes!
'packetsRx': 6,