check_http_proxy

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
intelXIadmin
Posts: 65
Joined: Mon Mar 25, 2013 9:10 am

check_http_proxy

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_http_proxy

Post by abrist »

You could change the host check to use the http proxy check instead of check_icmp/check_ping/host-alive/etc.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: check_http_proxy

Post 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 :)
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_http_proxy

Post by abrist »

We love 'options' down here. Either is fine.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
intelXIadmin
Posts: 65
Joined: Mon Mar 25, 2013 9:10 am

Re: check_http_proxy

Post by intelXIadmin »

Very simple. Thank you, that solves the problem.
Locked