<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000099">
Oddly enough, low-level tests show an HTTP 302, which I expect. But
Nagios is offering up a 400 error and a warning:<br>
<br>
>From my workstation, confirming the server is configured correctly:<br>
<br>
<blockquote>gentoo:~ adavis$ telnet seth 8080<br>
Trying 10.1.1.23...<br>
Connected to seth.fl.ad.scripps.edu.<br>
Escape character is '^]'.<br>
GET /gp HTTP/1.0<br>
Host: seth<br>
Accept: */*<br>
Connection: Keep-Alive<br>
Pragma: no-cache<br>
<br>
HTTP/1.1 302 Moved Temporarily<br>
Server: Apache-Coyote/1.1<br>
Location: <a class="moz-txt-link-freetext" href="http://seth/gp/">http://seth/gp/</a><br>
Date: Fri, 15 May 2009 20:12:40 GMT<br>
Connection: close<br>
<br>
Connection closed by foreign host.<br>
gentoo:~ adavis$ telnet seth 8080<br>
Trying 10.1.1.23...<br>
Connected to seth.fl.ad.scripps.edu.<br>
Escape character is '^]'.<br>
GET /gp/pages/login.jsf HTTP/1.0<br>
Host: seth<br>
Accept: */*<br>
Connection: Keep-Alive<br>
Pragma: no-cache<br>
<br>
HTTP/1.1 302 Moved Temporarily<br>
Server: Apache-Coyote/1.1<br>
Location: <a class="moz-txt-link-freetext" href="http://seth.fl.ad.scripps.edu:80/gp/pages/login.jsf">http://seth.fl.ad.scripps.edu:80/gp/pages/login.jsf</a><br>
Content-Length: 0<br>
Date: Fri, 15 May 2009 20:13:53 GMT<br>
Connection: keep-alive<br>
</blockquote>
<br>
>From services.cfg:<br>
<br>
<blockquote>## HTTP - alternate port<br>
define service {<br>
host_name seth<br>
service_description HTTP<br>
check_command check_http!-p 8080!-u
/gp/pages/login.jsf<br>
notes
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://$HOSTADDRESS$:8080/gp/pages/login.jsf">http://$HOSTADDRESS$:8080/gp/pages/login.jsf</a><br>
max_check_attempts 3<br>
normal_check_interval 15<br>
retry_check_interval 1<br>
check_period 24x7<br>
notification_interval 120<br>
notification_period 24x7<br>
notification_options w, u, c, r, f, s<br>
contact_groups unixadmins<br>
action_url
/nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$<br>
}<br>
</blockquote>
<br>
And the result in Nagios:<br>
<br>
<blockquote>HTTP WARNING: HTTP/1.1 400 No Host matches server name
seth<br>
</blockquote>
<pre class="moz-signature" cols="72">
A. Davis
Email: <a class="moz-txt-link-abbreviated" href="mailto:nccomp@gmail.com">nccomp@gmail.com</a>
"There is no limit to what a man can accomplish
if he doesn't care who gets the credit." - Ronald Reagan
</pre>
<br>
<br>
Andrew Davis wrote:
<blockquote cite="mid:4A0DC4F6.6000404@gmail.com" type="cite">I'm
seeing the following:<br>
<br>
HTTP WARNING: HTTP/1.1 400 No Host matches server name
seth.my.int.domain<br>
<br>
This is what the test looks like in Nagios:<br>
<br>
## HTTP - alternate port<br>
define service {<br>
host_name seth<br>
service_description HTTP<br>
check_command check_http!-p 8080!-u
/gp/pages/login.jsf<br>
notes
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://$HOSTADDRESS$:8080/gp/pages/login.jsf">http://$HOSTADDRESS$:8080/gp/pages/login.jsf</a><br>
max_check_attempts 3<br>
normal_check_interval 15<br>
retry_check_interval 1<br>
check_period 24x7<br>
notification_interval 120<br>
notification_period 24x7<br>
notification_options w, u, c, r, f, s<br>
contact_groups unixadmins<br>
action_url
/nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$<br>
}<br>
<br>
Oddly enough, all other tests for this host seem to have no issue at
all with the hostname. The URL also works in a web browser
(<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://seth.my.int.domain:8080/gp/pages/login.jsf">http://seth.my.int.domain:8080/gp/pages/login.jsf</a>
works correctly).
>From the Nagios server, I go hit the URL from lynx and curl w/o issue.
There's proper name resolution (forward and reverse) in place. I'm
lost...<br>
<pre class="moz-signature" cols="72">--
A. Davis
Email: <a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:nccomp@gmail.com">nccomp@gmail.com</a>
"There is no limit to what a man can accomplish
if he doesn't care who gets the credit." - Ronald Reagan
</pre>
</blockquote>
</body>
</html>