<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000099">
You were correct. My check command showed:<br>
<br>
# 'check_http' command definition<br>
define command{<br>
        command_name    check_http<br>
        command_line    $USER1$/check_http -I $HOSTADDRESS$ $ARG1$<br>
        }<br>
<br>
But my test was passing two arguments (-p and -u). Once I updated the
test to use $HOSTADDRESS$ $ARG1$ $ARG2$ all worked immediately. Thanks
for the help. :)<br>
<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>
Jon Angliss wrote:
<blockquote cite="mid:ktcs05php71n70igj7q5bhvlps61f0a6vm@4ax.com"
 type="cite">
  <pre wrap="">On Fri, 15 May 2009 16:17:50 -0400, Andrew Davis <a class="moz-txt-link-rfc2396E" href="mailto:nccomp@gmail.com"><nccomp@gmail.com></a>
wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">Oddly enough, low-level tests show an HTTP 302, which I expect. But 
Nagios is offering up a 400 error and a warning:

>From my workstation, confirming the server is configured correctly:

   gentoo:~ adavis$ telnet seth 8080
   Trying 10.1.1.23...
   Connected to seth.fl.ad.scripps.edu.
   Escape character is '^]'.
   GET /gp HTTP/1.0
   Host: seth
   Accept: */*
   Connection: Keep-Alive
   Pragma: no-cache
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Run the check_http as defined in the command definition, appending the
-v argument.  You'll get to see what the check_http command is
executing.  I suspect your command definition is incorrect, and you're
missing something that is supposed to be triggering the "host" header.

[.. snip ..]

  </pre>
  <blockquote type="cite">
    <pre wrap="">From services.cfg:

   ## HTTP - alternate port
   define service {
           host_name                       seth
           service_description             HTTP
           check_command                   check_http!-p 8080!-u
   /gp/pages/login.jsf
           notes                          
   <a class="moz-txt-link-freetext" href="http://$HOSTADDRESS$:8080/gp/pages/login.jsf">http://$HOSTADDRESS$:8080/gp/pages/login.jsf</a>
           max_check_attempts              3
           normal_check_interval           15
           retry_check_interval            1
           check_period                    24x7
           notification_interval           120
           notification_period             24x7
           notification_options            w, u, c, r, f, s
           contact_groups                  unixadmins
           action_url                     
   /nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
   }
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Where is your define command?


  </pre>
  <blockquote type="cite">
    <pre wrap="">
And the result in Nagios:

   HTTP WARNING: HTTP/1.1 400 No Host matches server name seth
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Hrm... this is odd, looks like you are posting the right host entry
(would still like to see the command definition).  The host entry for
"seth", is the address defined the same as the IP you are getting when
you telnet to the name? ie:

define host {
  host_name   seth
  address        10.1.1.23
}

  </pre>
</blockquote>
</body>
</html>