test group bandwidth

This commit is contained in:
Andreas Billmeier 2021-07-18 13:08:51 +02:00
parent 7a61f17d4a
commit 35631e4bc8
Signed by: onkelbeh
GPG Key ID: E6DB12C8C550F3C0
1 changed files with 14 additions and 0 deletions

View File

@ -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]