How to monitor a URL which is accessible on remote host.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

How to monitor a URL which is accessible on remote host.

Post by RIDS_I2MP »

Hi Team,

I want to monitor a URL from Nagios XI instance, this URL is not accessible from Nagios XI instance but URL is accessible on a remote host.

How can I set monitoring to such an URL.
Thanks & Regards,
I2MP Team.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: How to monitor a URL which is accessible on remote host.

Post by rkennedy »

For clarification, you'd like to monitor a URL that Nagios cannot directly access? You have a few options.

You could setup a proxy on the remote host, that Nagios can use to connect to that URL.
Nagios -> Remote host (proxy setup here) -> URL
You will need to use the -b flag with check_http once you have setup a proxy.

You could also use passive checks if your Nagios server is publically available.
https://assets.nagios.com/downloads/nag ... h_NRDS.pdf
Former Nagios Employee
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: How to monitor a URL which is accessible on remote host.

Post by RIDS_I2MP »

Kindly let us know how to setup proxy on the remote host.
Thanks & Regards,
I2MP Team.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: How to monitor a URL which is accessible on remote host.

Post by rkennedy »

Setting up a proxy is out of the scope of what we provide support for. You will need to take into account your LAN network, WAN network, and routes for your network.

You can try using http://www.squid-cache.org - take a look at http://wiki.squid-cache.org/SquidFaq/ConfiguringSquid for help.

Once your proxy is configured and working properly we can help configure Nagios to work with it.
Former Nagios Employee
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: How to monitor a URL which is accessible on remote host.

Post by eloyd »

You could also skip the proxy and use a check_by_ssh wrapper script to SSH to the intermediate host, then issue a local (to the intermediate host) check_http command that returns the results of the remote host back to Nagios.

Personally, assuming that you have the ability to SSH to the intermediary host, I'd do this rather than all the trouble of setting up a web proxy.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: How to monitor a URL which is accessible on remote host.

Post by hsmith »

Thanks Eric.

@RIDS_I2MP, does that answer your question?
Former Nagios Employee.
me.
Locked