Check_http with proxy

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
castroi
Posts: 52
Joined: Mon Jul 27, 2015 2:11 pm

Re: Check_http with proxy

Post by castroi »

Hello,

Yes it is working now :) .

Thank you again.
castroi
Posts: 52
Joined: Mon Jul 27, 2015 2:11 pm

Re: Check_http with proxy

Post by castroi »

How is the syntax for the https check ?

thank you,

Igor
castroi
Posts: 52
Joined: Mon Jul 27, 2015 2:11 pm

Re: Check_http with proxy

Post by castroi »

Hello,

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

Igor
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Check_http with proxy

Post 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?
Former Nagios Employee
castroi
Posts: 52
Joined: Mon Jul 27, 2015 2:11 pm

Re: Check_http with proxy

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Check_http with proxy

Post 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?
Former Nagios Employee
castroi
Posts: 52
Joined: Mon Jul 27, 2015 2:11 pm

Re: Check_http with proxy

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Check_http with proxy

Post 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
Former Nagios Employee
Locked