Re: [Nagios-devel] check_http bug?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] check_http bug?

Post by Guest »

Please disregard. This set of arguments works.

check_http --onredirect=follow -w 9 -c 10 -H devl.cms.vt.edu:29943 -I
devl.cms.vt.edu -u /Rhythmyx/ -R "Rhythmyx Login" -L


On Thu, May 8, 2008 at 8:12 AM, Richard Quintin
wrote:
> 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
> target="_blank">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
> target="_blank">Name or service not known
> HTTP CRITICAL - Unable to open TCP socket
>
>
> --
> Richard Quintin, DBA
> Database & Application Administration
> Virginia Tech
>



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





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