test group bandwidth
This commit is contained in:
parent
7a61f17d4a
commit
35631e4bc8
|
@ -103,13 +103,27 @@ def main():
|
|||
performancedata['k_clients'] = 0
|
||||
performancedata['e_clients'] = 0
|
||||
performancedata['o_clients'] = 0
|
||||
performancedata['k_in'] = 0
|
||||
performancedata['k_out'] = 0
|
||||
performancedata['e_in'] = 0
|
||||
performancedata['e_out'] = 0
|
||||
performancedata['o_in'] = 0
|
||||
performancedata['o_out'] = 0
|
||||
i = 0
|
||||
for cn in clients['Common Name']:
|
||||
if cn.startswith("k_"):
|
||||
performancedata['k_clients'] += 1
|
||||
performancedata['k_in'] += int(clients['Bytes Received'][i])
|
||||
performancedata['k_out'] += int(clients['Bytes Sent'][i])
|
||||
elif cn.startswith("e_"):
|
||||
performancedata['e_clients'] +=1
|
||||
performancedata['e_in'] += int(clients['Bytes Received'][i])
|
||||
performancedata['e_out'] += int(clients['Bytes Sent'][i])
|
||||
else:
|
||||
performancedata['o_clients'] +=1
|
||||
performancedata['o_in'] += int(clients['Bytes Received'][i])
|
||||
performancedata['o_out'] += int(clients['Bytes Sent'][i])
|
||||
i += 1
|
||||
|
||||
# add performancedata
|
||||
# 'label'=value[UOM];[warn];[crit];[min];[max]
|
||||
|
|
Loading…
Reference in New Issue