Thank you Thomas, I actually tried that already (I think I tried every single option with check_http)<br><br>What I can't figure out is why would nagios report an http 500 and running exactly the same command from a shell it works perfectly fine:<br>
<br><br>This is the HTTP Check Service CGI for <a href="http://myhost.mydomain.net">myhost.mydomain.net</a>:<br>Status Information:HTTP CRITICAL: HTTP/1.1 500 Internal Server Error -<br>720 bytes in 0.201 second response time<br>
Performance Data:time=0.201368s;3.000000;5.000000;0.000000 size=720B;;;0<br><br><br>This is from a shell:<br>./check_http -H <a href="http://myhost.mydomain.net">myhost.mydomain.net</a><br>HTTP OK: HTTP/1.1 200 OK - 279 bytes in 0.002 second response time<br>
|time=0.001871s;;;0.000000 size=279B;;;0<br><br>I tried with Curl and that works (I get a 200). Does anyone know about any kind of debug I can do? I'm not sure where to start as everything looks fine from a command line.<br>
<br><br><br>Regards.<br>Javier.<br><br><br><br>On Mon, Jan 24, 2011 at 11:32 PM, Thomas Guyot-Sionnest <<a href="mailto:dermoth@aei.ca">dermoth@aei.ca</a>> wrote:<br>> -----BEGIN PGP SIGNED MESSAGE-----<br>> Hash: SHA1<br>
><br>> On 11-01-21 10:46 AM, Javier D'Ovidio wrote:<br>>> Hello All:<br>>> This is my first post to this mailing list so be nice with me :P I'm<br>>> facing a few issues with the check_http plugin. I'm checking an apache<br>
>> on a host using check_http. Looking at the Nagios CGI I can see the<br>>> service in a CRITICAL state with the following information:<br>>><br>>> Status Information:HTTP CRITICAL: HTTP/1.1 500 Internal Server Error -<br>
>> 720 bytes in 0.201 second response time<br>>> Performance Data:time=0.201368s;3.000000;5.000000;0.000000 size=720B;;;0<br>>><br>>><br>>> Now, when I run the check_http on the command line, I get a different answer:<br>
>><br>>> ./check_http -H <a href="http://myhost.mydomain.net">myhost.mydomain.net</a><br>>> HTTP OK: HTTP/1.1 200 OK - 279 bytes in 0.002 second response time<br>>> |time=0.001871s;;;0.000000 size=279B;;;0<br>
>><br>>> This is my command definition:<br>>><br>>> define command{<br>>>         command_name    check_site_http<br>>>         command_line    $USER1$/check_http -H $HOSTADDRESS$ -w 5 -c 7 -t 8<br>
>>         }<br>>><br>>><br>>> As you can see, its very simple. Did anyone seen something like this<br>>> in the past? I have no idea why this might be happening<br>><br>> $HOSTADDRESS$ is usually the IP-address of the server in Nagios. The<br>
> general ways of using check_http are:<br>><br>> 1. -H <vhost> -I <ip_addr><br>><br>> where vhost is the hostname generally used to access the server and -I<br>> is the server's IP, This is one way one can test an individual server in<br>
> a pool of load-balancer servers.<br>><br>> 2. -H <hostname><br>><br>> Where hostname is the server to test - it will be resolver to an ip<br>> address and check_http will connect to that IP.<br>><br>
><br>> If #1 is unclear you should read about http name-based virtual hosting.<br>><br>><br>> You can also read more about check_http's usage with check_http --help.<br>><br>> Thanks<br>><br>> - --<br>
> Thomas<br>> -----BEGIN PGP SIGNATURE-----<br>> Version: GnuPG v1.4.10 (GNU/Linux)<br>> Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/">http://enigmail.mozdev.org/</a><br>><br>> iEYEARECAAYFAk0+NhoACgkQ6dZ+Kt5BchYURgCfZ6und1m3Lmfms7N4LQamovH4<br>
> cuAAoNXhsRKtuo1OpLrG1I/SVJbxxL58<br>> =Amtq<br>> -----END PGP SIGNATURE-----<br>><br><br>