Website Check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Website Check

Post by jkinning »

I have a website that uses an F5 for load balancing between two servers. I am monitoring these two servers, ServerA and ServerB, for basic hardware checks (cpu, memory, disk space, etc). The website is called mysite.com and on each server I have an asp page that has a value. This page ensures the site is up and communicating with the backend database correctly. The text on the asp page is ALL IS GOOD. I want to place a check for the website and list the website check in a different Host Group. The ServerA and ServerB are in a WIndows Prod Host Group and I want mysite.com to be listed in the IIS Website Host Group.

My question is can I create one service check and add this service check to each of the servers while also making each server a Parent, so when Server maintenance happens we can disable notification for Windows Prod Hostgroup and no notifications will be sent out? Or will I need to create two separate service checks? The service check will basically be to check the webpage using ssl to look for ALL IS GOOD when hitting the ServerA/myasp.asp page and ServerB/myasp.asp page.

I am thinking I am over complicating this but at a loss and looking for some guidance to simplify this web check without creating more work and unnecessary service checks.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Website Check

Post by jdalrymple »

I'm trying my best to follow the logic - I think I mostly have it.

You cannot have circular dependencies - that's the rule. The other thing is a host can't be the parent of a service, so hopefully you were hoping to have three hosts.

With that said, this is valid:

Code: Select all

define host{
     host_name     mysite.com
     parents     IISa, IISb
     }

define host{
     host_name     IISa
     }

define host{
     host_name     IISb
     }
The way the logic works is that even if IISa goes down mysite.com is NOT unreachable. Does that answer your question?

http://nagios.sourceforge.net/docs/nagi ... ility.html
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Website Check

Post by jkinning »

Thanks that helps.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Website Check

Post by jdalrymple »

OK to lock and mark solved, or do you think we'll need a revisit?
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Website Check

Post by jkinning »

You can lock.
Locked