I'm trying to monitor nginx, partly by checking for 502, 503, and 504 
errors, with this bit of code:

    on.condition(:http_response_code) do |c|
      c.host     = "website.org"
      c.path     = "/"
      c.code_is  = [502, 503, 504]
      c.times    = [2, 5]
    end

However, I'm getting this in the output every time it checks:

http response nominal [SocketError, SocketError, SocketError, SocketError, 
SocketError] (HttpResponseCode)

I understand that this probably means that the server can't make outgoing 
requests. Is there a way to fix or get around this?

-Bryan

-- 
You received this message because you are subscribed to the Google Groups 
"god.rb" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/god-rb/-/i88IhBW2YRkJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/god-rb?hl=en.

Reply via email to