Strange behavior of check_http
Karl DeBisschop
karl at debisschop.net
Sat Mar 6 04:00:14 CET 2004
On Fri, 5 Mar 2004 14:33:31 +0100
"Francois JEANMOUGIN" <Francois.JEANMOUGIN at 123multimedia.com> wrote:
> Hi all,
>
> I used check_http succefully for months now and found a strange
> behavior :
>
> If you use:
>
> check_http -H yourhost.yourcompany.com -I 1.2.3.4 -f follow -U
> /test.htm -w 4 -c 6
>
> You expect it to :
> - connect to 1.2.3.4 port 80
> - send :
> GET /test.html HTTP/1.0
> Host:yourhost.yourcompany.com
>
> This is usually the case. But if youhost.yourcompany.com is defined in
> /etc/hosts (say, with another IP like 1.2.3.100), then, this will
> override the -I option... The application will connect to 1.2.3.100
> instead of the 1.2.3.4 defined in the command line option.
>
> Is it a bug or a feature? I had a look at the check_http.c code, and
> have to confess that I didn't find the reason of it. Any idea from the
> devs ?
Bug.
What plugin version? What OS version?
--
Karl
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list