Page 2 of 2

Re: Proxy sites not working in Nagios XI

Posted: Wed Sep 26, 2012 2:54 pm
by manish2tiwari
Hi
I am able to track a proxy website host status by giving the below command
check_http!-H <host address> !-I <proxy ip>!-p <proxy port>!!!!!

But when i am trying to monitor the status of a url in the above site it is not able to track that particular url, the command for that check is:

check_http!-H <host address> !-I <proxy ip>!-p <proxy port>!-u <url>!!!!!

but above check is working fine even if i am giving the wrong url information, can you tell me if i am doing something wrong here, or is there any other way to track that url in Host H.

Thanks,

Re: Proxy sites not working in Nagios XI

Posted: Mon Oct 01, 2012 11:37 am
by manish2tiwari
Hi All/ Scott,

Is this expected behavior or have i missed any setting configuration here.

thanks for your help.
Manish

Re: Proxy sites not working in Nagios XI

Posted: Mon Oct 01, 2012 11:55 am
by scottwilkerson
This is expected behavior for check_http it doesn't have any way to use a proxy server to access another server.

This is why I suggested a different plugin that would need to be installed in the XI server and a command created to use it's settings.

Re: Proxy sites not working in Nagios XI

Posted: Mon Oct 01, 2012 12:57 pm
by manish2tiwari
Hi Scott,

Actually my question was for the above posts which i have posted earlier, it was regarding check_curl_http command that i am using.

thanks
Manish

Re: Proxy sites not working in Nagios XI

Posted: Mon Oct 01, 2012 1:29 pm
by slansing
If you are attempting to use check_curl_http, have a look at their manpages for a solution to passing the check through a proxy:

http://curl.haxx.se/docs/manpage.html