Thanks to @JohnKap the response times in the gateway plugin (3.7) now work.  The fix
would most likely work witht he 2.7 script as well, but I don't have time to test at the moment.
This commit is contained in:
Victor Robellini 2020-04-16 10:53:55 -04:00
parent c4d6094e5a
commit 80963d9652

View File

@ -16,6 +16,6 @@ for sock_name in glob.glob("dpinger*.sock"):
s = sock.connect(sock_path)
line = sock.recv(1024).decode().split('\n', 1)[0]
values = line.split()
print("gateways,gateway_name="+values[0]+" rtt="+str(int(values[1])/100.0)+ \
",rttsd="+str(int(values[2])/100.0)+",loss="+str(int(values[3]))+"i")
print("gateways,gateway_name="+values[0]+" rtt="+str(int(values[1])/1.0)+ \
",rttsd="+str(int(values[2])/1.0)+",loss="+str(int(values[3]))+"i")
sock.close()