Is there a way to check a password protected NGINX site? My staging
server is protected with a password so it will return a 401 status
code when God checks if it's up:
w.transition(:up, :restart) do |on|
on.condition(:http_response_code) do |c|
c.host = 'localhost'
c.port = 80
c.path = '/monitor.html'
c.code_is_not = 200
c.timeout = 10.seconds
c.times = [3, 5]
end
end
I would like, or to authenticate and check the site, or add multiple
status codes in the 'code_is_not' method (like [200, 401]). I could
add an extra page outside of the protected zone but it feels wrong to
check an extra page and not the application I'm trying to monitor.
Any ideas?
Thanks!
--
You received this message because you are subscribed to the Google Groups
"god.rb" group.
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.