Page 1 of 1

check_http_proxy

Posted: Wed Apr 16, 2014 11:29 am
by intelXIadmin
Hello,

I am using the check_http_proxy file to go through a proxy server while checking a website. It works just fine using this:

check_http_proxy --proxy=proxy:port --auth=user:pass --url=url --timeout=10.5 --warntime=5.0 --expect=content

I created a command and the check works fine after running the 'Monitor a Weburl' wizard. However, the actually host itself is not pingable so it shows up as down, while the service using check_http_proxy show up (green). Since I must have a host to put a service under and can't ping the host (it always shows down), is there are way to get around this?

Regards,

Randy.

Nagios version: Nagios XI 2012R2.9
Redhat: 6.5

Re: check_http_proxy

Posted: Wed Apr 16, 2014 11:36 am
by abrist
You could change the host check to use the http proxy check instead of check_icmp/check_ping/host-alive/etc.

Re: check_http_proxy

Posted: Wed Apr 16, 2014 12:07 pm
by BanditBBS
I create a dummy host for these type of situations. for example I have a host labeled "Email checks" and just have it set to command "Check_Dummy" and ARG1 set to 0 and ARG2 set to "Nothing to Monitor" and then have 4 or 5 email related service checks under that host.

or as Andy said, change the host check to the service check you want. Either way works, just your choice :)

Re: check_http_proxy

Posted: Wed Apr 16, 2014 12:10 pm
by abrist
We love 'options' down here. Either is fine.

Re: check_http_proxy

Posted: Wed Apr 16, 2014 12:10 pm
by intelXIadmin
Very simple. Thank you, that solves the problem.