I've always used the -u flag with the URI parameter, or URL path. <br><br>What happens if you issue the *exact* command defined by nagios? <br><br>/path/to/check_http -I <uranus_ip_address> -H uranus -u "<a href="http://uranus/uri/path/to/resource/indicator?query&string=parameters">http://uranus/uri/path/to/resource/indicator?query&string=parameters</a>" <br>
<br>If I understand correctly, check_http will connect to <uranus_ip_address>, then send the "Host: uranus" header, and then request for:<br><br> GET /<parameter of the -u flag> HTTP/1.X<br><br>I think you are doing the -u flag parameter with the full URL location, intead of just the URI path. <br>
<br>Cheers,<br><br><div class="gmail_quote">On Wed, Nov 25, 2009 at 11:59 PM, Thomas Guyot-Sionnest <span dir="ltr"><<a href="mailto:dermoth@aei.ca">dermoth@aei.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
</div><div class="im">On 25/11/09 07:34 PM, Eric wrote:<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>
> Do I need to add "$ARG2$" ?<br>
<br>
</div>No. $ARG2$ and so on are defined only if you have more "!" in the<br>
check_command definition.<br>
<br>
The only thing I notice here is that if uranus do not resolve to<br>
$HOSTADDRESS$ (the "address" defined on the host which has this service)<br>
then you're not checking the same host.<br>
<br>
Other than than, a trick could be to add "echo" begore the command line:<br>
<br>
command_line    echo $USER1$/check_http -I $HOSTADDRESS$ $ARG1$<br>
<br>
Then instead of getting the real result you will get the exact command<br>
(don't forget to re-add any single/double quote though) so you can try<br>
and see what's wrong.<br>
<div class="im"><br>
- --<br>
Thomas<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.6 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br>
<br>
</div>iD8DBQFLDeDn6dZ+Kt5BchYRAopwAJ99C4yMX1Q74u+65MgDLbTbGHSCMwCgqkhw<br>
Yph0iKQBrMQZuqSNVamVBX4=<br>
=hwfF<br>
<div><div></div><div class="h5">-----END PGP SIGNATURE-----<br>
<br>
------------------------------------------------------------------------------<br>
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day<br>
trial. Simplify your report design, integration and deployment - and focus on<br>
what you do best, core application coding. Discover what's new with<br>
Crystal Reports now.  <a href="http://p.sf.net/sfu/bobj-july" target="_blank">http://p.sf.net/sfu/bobj-july</a><br>
_______________________________________________<br>
Nagiosplug-help mailing list<br>
<a href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br>
::: Please include plugins version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
</div></div></blockquote></div><br>