Page 1 of 1

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

Posted: Tue Oct 20, 2015 1:20 am
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.

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

Posted: Tue Oct 20, 2015 10:06 am
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

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

Posted: Wed Oct 21, 2015 7:56 am
by RIDS_I2MP
Kindly let us know how to setup proxy on the remote host.

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

Posted: Wed Oct 21, 2015 9:43 am
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.

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

Posted: Wed Oct 21, 2015 2:17 pm
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.

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

Posted: Wed Oct 21, 2015 5:03 pm
by hsmith
Thanks Eric.

@RIDS_I2MP, does that answer your question?