> Am 01.02.2016 um 23:02 schrieb Florian Lohoff <[email protected]>:
>
>
> Hi,
> i am trying to get my way along service dependencys in icinga2 - I have
> a working setup with nagios 1 with tons of dependencys and now i am
> trying to get the same working with icinga2. I fail to do so.
>
> I have a TenGigE port channel which depends on the 2 individual
> TenGigE interfaces. One of the interfaces goes down without any result
> on the port channel. I can see the dependency in the web gui but it does
> not seem to get processed.
>
> This is the config excerpt. Currently TenGigE 2/1/3 is Down. Port-channel20 is
> still OK ... I would have expected it to go CRITICAL aswell ...
Dependencies do not change the state, but change the reachability of object
parent-child relations. They further suppress notifications (default true) and
checks (default false) if the dependency fails (parent is in a !OK state in
your config example).
The old Nagios system worked in a similar fashion although the config options
{notification,execution}_failure_criteria are now used as
enable_{checks,notification} and states. Nagios/Icinga1 dependencies do not
alter child states either, so where's your expectation coming from?
Kind regards,
Michael
>
>
> object Service "IF TenGigabitEthernet2/1/3" {
> # cb7aee14377f35ccb58d46d9c30dc331-if
> import "generic-service"
> host_name = "switch-a"
> check_command = "customif"
> vars.ifname="TenGigabitEthernet2/1/3"
> vars.sla = "24x7"
> }
>
> object Service "IF TenGigabitEthernet1/1/3" {
> # cb7aee14377f35ccb58d46d9c30dceb5-if
> import "generic-service"
> host_name = "switch-a"
> check_command = "customif"
> vars.ifname="TenGigabitEthernet1/1/3"
> vars.sla = "24x7"
> }
>
> object Service "IF Port-channel20" {
> # cb7aee14377f35ccb58d46d9c30ded52-if
> import "generic-service"
> host_name = "switch-a"
> check_command = "customif"
> vars.ifname="Port-channel20"
> vars.sla = "24x7"
> }
>
> object Dependency
> "switch-a-cb7aee14377f35ccb58d46d9c30dc331-if-switch-a-cb7aee14377f35ccb58d46d9c30ded52-if"
> {
> # Service dependency
> parent_host_name = "switch-a"
> child_host_name = "switch-a"
> # cb7aee14377f35ccb58d46d9c30dc331-if
> parent_service_name = "IF TenGigabitEthernet2/1/3"
> # cb7aee14377f35ccb58d46d9c30ded52-if
> child_service_name = "IF Port-channel20"
> states = [ OK ]
> }
>
> object Dependency
> "switch-a-cb7aee14377f35ccb58d46d9c30dceb5-if-switch-a-cb7aee14377f35ccb58d46d9c30ded52-if"
> {
> # Service dependency
> parent_host_name = "switch-a"
> child_host_name = "switch-a"
> # cb7aee14377f35ccb58d46d9c30dceb5-if
> parent_service_name = "IF TenGigabitEthernet1/1/3"
> # cb7aee14377f35ccb58d46d9c30ded52-if
> child_service_name = "IF Port-channel20"
> states = [ OK ]
> }
>
> --
> Florian Lohoff [email protected]
> We need to self-defend - GnuPG/PGP enable your email today!
> _______________________________________________
> icinga-users mailing list
> [email protected]
> https://lists.icinga.org/mailman/listinfo/icinga-users
--
Michael Friedrich, DI (FH)
Senior Developer
NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
CEO: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
http://www.netways.de | [email protected]
** OSDC 2016 - April - netways.de/osdc **
** OSBConf 2016 - September - osbconf.org **
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users