<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6603.0">
<TITLE>FW: Help Please "HTTP WARNING: HTTP/1.1 400 No Host matches server name nagios"</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">I am receiving this error, and I can't figure out where it's coming from.</FONT>
</P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">I have two hosts, ap63 and ap64.</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">Ap63 works, so I copied the  set files and created an entry for ap64, changed the host name and POW! BAM! BOOM! I get the warning all the time.</FONT></P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">GOOD: /usr/local/lib/nagios/plugins/check_http hs01ap63.healthsouth.com -p 8080 -s "Welcome to JBoss"</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">HTTP ok: HTTP/1.1 200 OK -   0.009 second response time |time=  0.009</FONT>
</P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">BAD: /usr/local/lib/nagios/plugins/check_http hs01ap64.healthsouth.com -p 8080 -s "Welcome to JBoss"</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">HTTP WARNING: HTTP/1.1 400 No Host matches server name hs01ap64</FONT>
</P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">Hosts.cfg - ap63</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">=====</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">define service {</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        host_name       hs01ap63</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        service_description     SmartSystem JBoss</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        check_command   check_jboss_hs01ap63</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        max_check_attempts      5</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        normal_check_interval   1</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        retry_check_interval    1</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        check_period    smartsys</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        notification_interval  60</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        notification_period     smartsys</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        notification_options    w,u,c,r</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        notifications_enabled   1</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        contact_groups          smartsysadmins</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        }</FONT>
</P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">Hosts.cfg - ap64</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">=========</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">define service {</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        host_name       hs01ap64</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        service_description     SmartSystem JBoss</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        check_command   check_jboss_hs01ap64</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        max_check_attempts      5</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        normal_check_interval   1</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        retry_check_interval    1</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        check_period    smartsys</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        notification_interval  60</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        notification_period     smartsys</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        notification_options    w,u,c,r</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        notifications_enabled   1</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        contact_groups          smartsysadmins</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">        }</FONT>
</P>
<BR>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">Any help would be greatly appreciated.</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">I'm starting to think maybe it's not a nagios problem? Maybe Jboss has a problem?</FONT>
</P>

<P><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">Thanks,</FONT>

<BR><FONT COLOR="#0000FF" SIZE=2 FACE="Comic Sans MS">Don</FONT>
</P>

</BODY>
</HTML>
<table><tr><td bgcolor=#ffffff><font color=#000000>Confidentiality Notice: This e-mail communication and any attachments may contain <br>
confidential and privileged information for the use of the designated recipients named above. If <br>
you are not the intended recipient, you are hereby notified that you have received this <br>
communication in error and that any review, disclosure, dissemination, distribution or <br>
copying of it or its contents is prohibited. If you have received this communication in <br>
error, please notify me immediately by replying to this message and deleting it from your <br>
computer. Thank you.<br>
</font></td></tr></table>