Method: OkComputer::PingCheck#check

Defined in:
lib/ok_computer/built_in_checks/ping_check.rb

#checkObject

Public: Return the status of the Ping check



22
23
24
25
26
27
28
# File 'lib/ok_computer/built_in_checks/ping_check.rb', line 22

def check
  tcp_socket_request
  mark_message "Ping check to #{host}:#{port} successful"
rescue => e
  mark_message "Error: '#{e}'"
  mark_failure
end