Page 2 of 2

Re: Check_http with proxy

Posted: Tue Dec 08, 2015 4:05 pm
by castroi
Hello,

Yes it is working now :) .

Thank you again.

Re: Check_http with proxy

Posted: Tue Dec 08, 2015 4:11 pm
by castroi
How is the syntax for the https check ?

thank you,

Igor

Re: Check_http with proxy

Posted: Tue Dec 08, 2015 4:15 pm
by castroi
Hello,

Yes it is now working, thank you very much.
How about https check syntax ?

Igor

Re: Check_http with proxy

Posted: Tue Dec 08, 2015 4:51 pm
by rkennedy
Glad to see that it works!

To make it use https, try adding a -S to the end of the command.

Code: Select all

/usr/local/nagios/libexec/check_http -H <proxy> -p <proxyport> -b user:pass -u http://iata.my.salesforce.com -w 10 -c 15 -S
Does that work for you?

Re: Check_http with proxy

Posted: Tue Dec 08, 2015 5:07 pm
by castroi
Hello,

No it is just time out.

[lxadmin@ymq-lpnagapp1 ~]$ /usr/local/nagios/libexec/check_http -H <PROXY> -t 50 -p 8080 -b <USER:PASS>-u http://www.iata.org -w 10 -c 15 -S
CRITICAL - Socket timeout after 50 seconds
[lxadmin@ymq-lpnagapp1 ~]$

Igor

Re: Check_http with proxy

Posted: Tue Dec 08, 2015 5:27 pm
by rkennedy
What happens if you run it with a different domain? I wasn't able to connect to https://iata.org from here (http works fine)

Alternatively, what happens if you run it with https://www.iata.org rather than http://www.iata.org?

Re: Check_http with proxy

Posted: Tue Dec 08, 2015 5:33 pm
by castroi
Hello,

I have tried it too.
It is same, socket timeout.

could it be again some parameter order ? Should i move the -S somewhere in the between ?

Igor

Re: Check_http with proxy

Posted: Tue Dec 08, 2015 5:38 pm
by rkennedy
Did you try with a different domain that isn't iata.org?

I don't think the -S matters in relation to the syntax, but it may. Try this -

Code: Select all

/usr/local/nagios/libexec/check_http -H <PROXY> -t 50 -p 8080 -b <USER:PASS>-u https://www.iata.org -S -w 10 -c 15