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

Reply via email to