Page 1 of 1

"Connection Time Out" on http responce check

Posted: Wed Jan 18, 2012 4:09 am
by pamps101
can anyone help me on my setup on Nagios Xi.

i can successfully browse the website and viewable but the Status Information i get is "Connection time out" see below commands i used.

Command Name: check_http_response_host
Command line: $USER1$/check_http -H $ARG1$ --onredirect=follow -t $ARG2$ -p $ARG3$ -u $ARG4$ -e $ARG5$

my argument specified:
arg 1= http://www.sunpowercorp.com.au
arg2 =15
arg3 = 80
arg4= http://www.sunpowercorp.com.au or http://www.sunpowercorp.com.au/
arg5 = 301,200,302

regards,
-Pamps

Re: "Connection Time Out" on http responce check

Posted: Wed Jan 18, 2012 11:01 am
by scottwilkerson
When I run the following from the command line it works fine

Code: Select all

./check_http -H www.sunpowercorp.com.au --onredirect=follow -t 15 -p 80 -u http://www.sunpowercorp.com.au -e 301,200,302
so, I would suggest changing $ARG1$ to just www.sunpowercorp.com.au

Re: "Connection Time Out" on http responce check

Posted: Wed Jan 18, 2012 6:08 pm
by pamps101
i already did changing it to www.sunpowercorp.com.au or only sunpowercorp.com.au but STILL it won't work for me...

can anyone help me?

thanks,
-Pamps

Re: "Connection Time Out" on http responce check

Posted: Thu Jan 19, 2012 2:01 pm
by lmiltchev
Are you having troubles with running the command from the command line or with running it in the web interface?

I was able to run it successfully from the command line - see the image below:
check_http.png

Re: "Connection Time Out" on http responce check

Posted: Thu Jan 19, 2012 10:53 pm
by pamps101
Hi lmiltchev,

thanks for you reply, i appreciate is a lot.

i'm configuring it via web interface... i've also attached the screenshot here on my reply.

what do you think the issue i'm encountering?

thanks,
-Pamps

Re: "Connection Time Out" on http responce check

Posted: Fri Jan 20, 2012 1:33 pm
by scottwilkerson
I have confirmed that these exact settings work perfectly on my machine.

This leads me to believe that your Nagios XI server cannot reach www.sunpowercorp.com.au or that your DNS serviers are incorrectly resolving the address.

From the command line of the Nagios XI server can you run the following and report back:

Code: Select all

dig www.sunpowercorp.com.au
Also:

Code: Select all

cd /tmp
wget http://www.sunpowercorp.com.au