Hello David

Welcome to Icinga.
Let me start by pointing out that this mailing list is rarely active and hence you may not get much response here, your best approach in the future is either the IRC channel on freenet #icinga , or the official on-line forum https://community.icinga.com/

But to answer your query, the dependency is incorrect, you stated that all hosts are dependent on the BigTown ( i.e master ) and thus you will always get notifications.
You may want to change your dependency to be like this :

apply Dependency "LittleTown" to Host {
  parent_host_name = "LittleTown.int.example.com"
  disable_checks = true
  disable_notifications = true

  assign where host.notes == "LittleTown" && host.name !=
"LittleTown.int.example.com"
}

That way the hosts are dependent on the Router and not the Master.

Regards


On 16/06/2020 23:07, David Robert Newman wrote:
Greetings. Relatively new Icinga2 user here having trouble with
notifications that a dependency should squelch.

Icinga2 is monitoring systems at two locations, BigTown and LittleTown.
The Icinga2 system is in BigTown.

Upstream connectivity at LittleTown is a little flaky, and I'd like to
be notified only when Icinga2 can't see the LittleTown router, not all
the systems behind it.

Problem is, I'm getting notifications for all the LittleTown systems,
not just the remote router, when LittleTown connectivity goes out.

What's wrong in this setup?

#BigTown router
object Host "BigTown.int.example.com" {
     import "generic-host"
     address = "172.31.0.1"
     notes = "BigTown"

     vars.os = "OpenBSD"

     vars.notification["mail"] = {
         groups = [ "icingaadmins" ]
     }
}

# LittleTown router
object Host "LittleTown.int.example.com" {
     import "generic-host"
     address = "172.31.1.1"
     notes = "LittleTown"

     vars.os = "OpenBSD"

     vars.notification["mail"] = {
         groups = [ "icingaadmins" ]
     }
}


#LittleTown host
object Host "ap0.int.example.com" {
     import "generic-host"
     address = "172.31.1.11"
     notes = "LittleTown"

     vars.notification["mail"] = {
         groups = [ "icingaadmins" ]
     }
}

# make LittleTown hosts children of BigTown router

apply Dependency "BigTown" to Host {
   parent_host_name = "BigTown.int.example.com"
   disable_checks = true
   disable_notifications = true

   assign where host.notes == "LittleTown" && host.name !=
"LittleTown.int.example.com"
}

There are lots more hosts in LittleTown, and they all send notifications
whenever the LittleTown link goes down.

What's wrong here, and how can I get notifications for only the
LittleTown router?

Many thanks!


/drn


/drn
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users


_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to