Strange behavior of check_http
Francois JEANMOUGIN
Francois.JEANMOUGIN at 123multimedia.com
Fri Mar 5 14:33:31 CET 2004
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 ?
François.
-------------------------------------------------------
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_id70&alloc_id638&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