Monitoring a website behind a firewall

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
naglink
Posts: 4
Joined: Mon Jul 16, 2012 11:03 am

Monitoring a website behind a firewall

Post by naglink »

Greetings all,

I just setup a new Nagios XI install, and I'm finding my way around. I've gotten monitoring up and running on several hosts, but I've run into a snag. I'm trying to monitor a website siting on a system that is behind a firewall. Eventually I may be about to open a port to allow Nagios through, but in the mean time I am trying to get monitoring setup for a website.

That site is accessible from the outside world through specific port, but most other types of traffic are denied. I've tried a few different methods to monitor the website, but each time I get nagios reporting that the system is unavailable. If you look at the services details on the view tab, it shows that HTTP is up, but the host itself shows as down with a message "Socket timeout after 10 seconds" . Is there a way to just monitor the HTTP connection, and not have the host itself flagged with a critical warning because it's no reachable? All we care about is making sure the website is up, nothing else.

Thanks in advance.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Monitoring a website behind a firewall

Post by lmiltchev »

See if this is going to be a solution for you:

http://assets.nagios.com/downloads/nagi ... _In_XI.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
naglink
Posts: 4
Joined: Mon Jul 16, 2012 11:03 am

Re: Monitoring a website behind a firewall

Post by naglink »

That looks like a great place to start, thank you. Since port 80 is blocked on that site, but another port is open, do you know if there is a way to have that service checking on the open port? I applied that fix, and it's still showing the host as down.

Thanks again for you help!
naglink
Posts: 4
Joined: Mon Jul 16, 2012 11:03 am

Re: Monitoring a website behind a firewall

Post by naglink »

double-post
Last edited by naglink on Mon Jul 16, 2012 1:08 pm, edited 1 time in total.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitoring a website behind a firewall

Post by scottwilkerson »

Go to
Configure -> CCM -> Hosts -> Modify
Change the following
check command = check_xi_host_http
$ARG1$ = -p 8888

Replace 8888 with the port in use
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
naglink
Posts: 4
Joined: Mon Jul 16, 2012 11:03 am

Re: Monitoring a website behind a firewall

Post by naglink »

Thank you so much, that did the trick. Adding the port on the modification screen is exactly what it took. Consider this one solved.
Locked