Nagios3 check_httpname gives 503 response; from command line I get a 200 response
Posted
by Michael T. Smith
on Server Fault
See other posts from Server Fault
or by Michael T. Smith
Published on 2010-06-11T19:33:37Z
Indexed on
2010/06/11
19:43 UTC
Read the original article
Hit count: 352
We're using Nagios to monitor our site (and a bunch of other stuff.) For some odd reason, when I test out the command
/usr/lib/nagios/plugins/check_http -H 'domainname.com'
the response that comes back is HTTP/1.1 200 OK
but when I set up the service to do it:
# Check that domain is running
define service {
hostgroup_name hostgroup
service_description host site
check_command check_httpname!domainname.com
use generic-service
notification_interval 1; set > 0 if you want to be renotified
}
the response that comes back is HTTP/1.1 503 Service Unavailable
.
Does anyone know why this would be happening?
© Server Fault or respective owner