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