Fix output type

This commit is contained in:
Kevin Alberts 2020-04-25 14:45:17 +02:00
parent c7fd242bd6
commit 91ebe44599
Signed by: Kurocon
GPG key ID: BCD496FEBA0C6BC1

View file

@ -48,10 +48,10 @@ while True:
if http_noopen_match:
http_current_transfers, http_current_users = 0, 0
print("PUTVAL \"{}/shares/gague-smb_open_connections\" interval={} N:{}".format(HOSTNAME, INTERVAL, smb_current_users), flush=True)
print("PUTVAL \"{}/shares/gague-smb_active_users\" interval={} N:{}".format(HOSTNAME, INTERVAL, smb_active_users), flush=True)
print("PUTVAL \"{}/shares/gague-smb_open_files\" interval={} N:{}".format(HOSTNAME, INTERVAL, smb_current_files), flush=True)
print("PUTVAL \"{}/shares/gague-http_active_users\" interval={} N:{}".format(HOSTNAME, INTERVAL, http_current_users), flush=True)
print("PUTVAL \"{}/shares/gague-http_open_transfers\" interval={} N:{}".format(HOSTNAME, INTERVAL, http_current_transfers), flush=True)
print("PUTVAL \"{}/shares/gauge-smb_open_connections\" interval={} N:{}".format(HOSTNAME, INTERVAL, smb_current_users), flush=True)
print("PUTVAL \"{}/shares/gauge-smb_active_users\" interval={} N:{}".format(HOSTNAME, INTERVAL, smb_active_users), flush=True)
print("PUTVAL \"{}/shares/gauge-smb_open_files\" interval={} N:{}".format(HOSTNAME, INTERVAL, smb_current_files), flush=True)
print("PUTVAL \"{}/shares/gauge-http_active_users\" interval={} N:{}".format(HOSTNAME, INTERVAL, http_current_users), flush=True)
print("PUTVAL \"{}/shares/gauge-http_open_transfers\" interval={} N:{}".format(HOSTNAME, INTERVAL, http_current_transfers), flush=True)
time.sleep(INTERVAL)