Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #8304] Multiparent Dependencies and Unreachable Status #2565

Closed
icinga-migration opened this issue Jan 28, 2015 · 6 comments
Closed
Labels
area/configuration DSL, parser, compiler, error handling bug Something isn't working

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/8304

Created by deneu on 2015-01-28 12:50:57 +00:00

Assignee: (none)
Status: Rejected (closed on 2015-02-01 10:02:17 +00:00)
Target Version: (none)
Last Update: 2016-04-11 11:32:09 +00:00 (in Redmine)

Icinga Version: 2.2.3

Hello,

i've got lot of hosts with multiple parents (vmware host system etc). Do define these parents objects i created dependencies for each parent host.
In status map and also in host informations these dependencies are listed.
If one of my parents is not reachable all child get unreachable, whats wrong beacause it is a kind of "OR" condition.
Whats the right way to create those multiple parent dependencies?
Example of my situtation:

object HostGroup "dependencytest" {
        assign where match("child*", host.name) || match ("parent*", host.name)
}
template Host "testhost" {
        import "generic-host"
        check_interval = 1m
        retry_interval = 30
}

object Host "parent1" {
        import "testhost"
        address = "127.0.0.1"
        vars.testparent = "true"
}

object Host "parent2" {
        import "testhost"
        address = "126.0.0.1"
        vars.testparent = "true"
}

object Host "child1" {
        import "testhost"
        address = "127.0.0.1"
}
object Host "child2" {
        import "testhost"
        address = "127.0.0.1"
}
object Host "child3" {
        import "testhost"
        address = "127.0.0.1"
}

apply Dependency "testparent1" to Host {
        parent_host_name = "parent1"
        assign where match("child*", host.name)
}

apply Dependency "testparent2" to Host {
        parent_host_name = "parent2"
        assign where match("child*", host.name)
}

In my opinion and the way icinga 1 is working - if there are multiple parents defined the status unreachable should only be set if all parents are unavailable.

Thank you!

Regards,
Philipp


Relations:

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-02-01 10:02:17 +00:00

  • Category changed from Checker to Configuration
  • Status changed from New to Rejected

Imho that's a duplicate of the feature request #6871 - and not a bug.

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-02-01 10:02:31 +00:00

  • Duplicates set to 6871

@icinga-migration
Copy link
Author

Updated by deneu on 2015-02-01 10:27:15 +00:00

Hey Michi,
maybe its more a feature, but the feature #6871 is closed and i followed the instructions in the documentation.
The question is "Why are my child hosts unreachble when multiple parents defined?"

Thank you

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-02-14 22:58:49 +00:00

Multiple parent dependencies are combined as logical 'or'. I've re-opened the other ticket, feel free to come up with a patch. Feature freeze for 2.3 is end of February though.

@icinga-migration
Copy link
Author

Updated by mfrosch on 2015-09-01 12:51:42 +00:00

  • Relates set to 10058

@icinga-migration
Copy link
Author

Updated by deneu on 2016-04-11 11:32:09 +00:00

Anything new to this?

@icinga-migration icinga-migration added bug Something isn't working area/configuration DSL, parser, compiler, error handling labels Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/configuration DSL, parser, compiler, error handling bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant