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 #9262] cluster check w/ immediate parent and child zone endpoints #3010

Closed
icinga-migration opened this issue May 13, 2015 · 8 comments
Labels
area/distributed Distributed monitoring (master, satellites, clients) bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

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

Created by formorer on 2015-05-13 07:04:38 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2015-08-03 14:17:35 +00:00)
Target Version: 2.3.9
Last Update: 2015-08-12 08:52:13 +00:00 (in Redmine)

Icinga Version: 2.3.4
Backport?: Already backported
Include in Changelog: 1

in my current setup I have master -> slave -> remote execution client, I use configuration sync to define the my configuration top-down from the master
down to my client(s). That works pretty well, to be able to resolve all objects I have to define the remote execution clients as endpoint and zone on my master, which also works.

Unfortunately the clustercheck turns red afterwards, after looking into the code it seems that the check expects all defined endpoints to be connected:

 String connected_endpoints = FormatArray(status->Get("conn_endpoints"));
    String not_connected_endpoints = FormatArray(status->Get("not_conn_endpoints"));

    if (status->Get("num_not_conn_endpoints") > 0) {
        cr->SetState(ServiceCritical);
        cr->SetOutput("Icinga 2 Cluster Problem: " + Convert::ToString(status->Get("num_not_conn_endpoints")) +
            " Endpoints (" + not_connected_endpoints + ") not connected.");
    } else {

it should honor the parent setting in the object to only check its childs for connection.

Changesets

2015-07-31 14:19:58 +00:00 by (unknown) 869ab4b

Fix cluster check w/ immediate parent and child zone endpoints

Requires tests.

refs #9262

2015-08-03 14:16:46 +00:00 by (unknown) d7e8d8a

Fix cluster check w/ immediate parent and child zone endpoints

fixes #9262

2015-08-12 08:51:37 +00:00 by (unknown) b6b6115

Fix cluster check w/ immediate parent and child zone endpoints

fixes #9262

Relations:

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-05-18 13:31:29 +00:00

  • Relates set to 9287

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-06-18 09:15:28 +00:00

  • Status changed from New to Assigned
  • Assigned to set to mfriedrich
  • Icinga Version changed from 3 to 2

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-06-23 13:26:19 +00:00

  • Target Version set to Backlog

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-07-30 09:58:12 +00:00

  • GetLocalZone() -> get parent+child zones and their endpoints
  • check all collected endpoints for their connection

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-07-31 14:10:13 +00:00

  • Subject changed from _Clustercheck should honor end_point parent _ to cluster check w/ immediate parent and child zone endpoints

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2015-08-03 14:17:14 +00:00

  • Target Version changed from Backlog to 2.4.0
  • Estimated Hours set to 4

@icinga-migration
Copy link
Author

Updated by Anonymous on 2015-08-03 14:17:36 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset d7e8d8a.

@icinga-migration
Copy link
Author

Updated by gbeutner on 2015-08-12 08:52:13 +00:00

  • Target Version changed from 2.4.0 to 2.3.9
  • Backport? changed from TBD to Yes

@icinga-migration icinga-migration added bug Something isn't working area/distributed Distributed monitoring (master, satellites, clients) labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.3.9 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/distributed Distributed monitoring (master, satellites, clients) bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant