Skip to content
Snippets Groups Projects
Commit 87c25775 authored by Jeroen Nijhof's avatar Jeroen Nijhof
Browse files

Changed check from ICMP to TCP connect

parent d292e7a8
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -35,7 +35,7 @@ end
time = Time.new.to_i
services.each do | service |
if service[0].include?('SSH')
value = get_value(service[5], 'rta=')
value = get_value(service[5], 'time=')
stats = set_value(stats, 'latency', {'time' => time, 'state' => service[4], 'value' => value})
name = 'ssh response time'
value = get_value(service[2], 'time=')
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment