Page 1 of 1

[Nagios-devel] check_http bug?

Posted: Thu May 08, 2008 4:12 am
by Guest
I'm trying to check a virtual host on a non-standard port using
check_http. I've tried all permutations I can think of and can't seem
to get it to work. It appears to me to be a bug, but if anyone can
show me where I'm using the wrong parameters that would be great.
Otherwise I'll be working on a patch for this today....

# Here I try just a simple virtual host with the port included in the hostname
# Notice the doubling up of the port
:~$ check_http --onredirect=follow -w 9 -c 10 -H devl.cms.vt.edu:29943
-u /Rhythmyx/ -R "Rhythmyx Login" -L
Name or service not known
HTTP CRITICAL - Unable to open TCP socket

# Here I pull the port out and specify it with -p
# But because the port isn't included in the header the check fails
~$ check_http --onredirect=follow -w 9 -c 10 -H devl.cms.vt.edu -p
29943 -u /Rhythmyx/ -R "Rhythmyx Login" -L
HTTP
CRITICAL - Invalid HTTP response received from host on port 29943

# Here I specify the port in the hostname and use the -p argument
# We're back to the doubling up problem
:~$ check_http --onredirect=follow -w 9 -c 10 -H devl.cms.vt.edu:29943
-p 29943 -u /Rhythmyx/ -R "Rhythmyx Login" -L
Name or service not known
HTTP CRITICAL - Unable to open TCP socket


--
Richard Quintin, DBA
Database & Application Administration
Virginia Tech





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]