Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I created a script that monitors a Cisco Router interface.

./check_cisco Router1 Serial0/0/0
Interface Serial0/0/0 is up for Router1

I would like to stop all other notifications if a critical or warning alert is trigged for this alert. Not really sure how to do this.

share|improve this question
up vote 6 down vote accepted

You will have to look into the dependencies system of nagios.


share|improve this answer

If you want to avoid warnings for hosts behind the router interface when it is down, you could simply use the "parents" option on the hosts behind it. This tells nagios that whenever the router is unavailable there is no use in checking the stuff behind it.

Adding "parents" to all your hosts has the added benefit that the status map becomes much more useful.

define host{
    use             generic-host
    host_name       cisco_router
    alias           Important router
    check_command   check_cisco

define host{
    use             generic-host
    host_name       office_printer
    alias           A printer
    parents         cisco_router
share|improve this answer
Couldn't you just add the appropriate parents entry to the hostgroup that they are a part of, rather than each host entry? – MDMarra Jul 15 '10 at 19:46
If the hostgroup is really a group of hardware behind the router, sure. But it's probably more likely you will have a group like "printers" or "access points", where the objects are spread out. – Pontus Aug 14 '10 at 10:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.