Monitoring branch office servers


#1

I am trying to monitor servers in remote branch offices and I dont want to be alerted when the WAN goes down. Is there a plugin that will check the status of the server then only alert if the branch office router is up. If the wan is down the users at the remote office still have functionality as long as the local server is up.


#2

Well… I’m just a nagios novice, so there’s probably a better way of doing this… but I needed to do exactly the same thing. I used hosts dependencies. Here’s an example -

define hostdependency{
host_name client.site.router
dependent_host_name client.site.firewall
notification_failure_criteria d,u
}

define hostdependency{
host_name client.site.firewall
dependent_host_name client.site.server
notification_failure_criteria d,u
}

This works for the very simple (single ADSL connection) site with a chain router-firewall-server. If the router is down, you’ll just receive notifications re: the router, not the firewall and the server as well.

However, I’ve yet to find a way of implementing an ‘OR’ mechanism, for our clients that have dual ADSL lines. I’d need to do something like this…

define hostdependency{
host_name client.site.firewall1 OR client.site.firewall2
dependent_host_name client.site.server
notification_failure_criteria d,u
}

But it no worky :frowning:

If you’ve only got one route into the networks you are monitoring, then my first example should suit you fine… until somebody more knowledgeable tells you how to do it properly! :wink:


#3

Thanks so much for the example. I will expand on it and see what I can come up with.


#4

use depndecies or configure the parents directives and ignore errors for the UNKNOWN status.
if the branch office router is the parent of all other hosts in the branch you can decide what happens with alerts on thta particula rhosts… the hosts behind it would be unknown… so that would fix it :slight_smile: