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
Milestone

Comments

@icinga-migration
Copy link
Member

@icinga-migration icinga-migration commented May 13, 2015

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

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented May 18, 2015

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

  • Relates set to 9287
@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Jun 18, 2015

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

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Jun 23, 2015

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

  • Target Version set to Backlog
@icinga-migration

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Jul 30, 2015

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

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Jul 31, 2015

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

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Aug 3, 2015

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

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Aug 3, 2015

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

This comment has been minimized.

Copy link
Member Author

@icinga-migration icinga-migration commented Aug 12, 2015

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.