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

Error in Director created configuration: Command endpoint must be in zone 'example-masters' or in a direct child zone thereof #721

Open
5 of 8 tasks
kbucheli opened this issue Oct 13, 2023 · 1 comment
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@kbucheli
Copy link
Contributor

This issue respects the following points:

Which variant of the Monitoring Plugins do you use?

  • .rpm/.deb package from repo.linuxfabrik.ch
  • Compiled for Linux (.tar/.zip from download.linuxfabrik.ch)
  • Compiled for Windows (from download.linuxfabrik.ch)
  • Source Code from GitHub

Bug description

We have a 3-tier Icinga2 monitoring setup using satellites according to the Distributed Monitoring documentation.

I imported the command definitions et al. into the Director according to ICINGA.rst -> All Plugins, I also followed

If you did not name your master zone master during the initial icinga2 node wizard, find and replace "zone": "master" with "zone": "your-master-zone-name" in the icingaweb2-module-director-basket.json file.

When trying to apply these service templates on a test host, icinga2 refused the configuration:

critical/config: Error: Validation failed for object 'lx-test-01.example.com!Load' of type 'Service'; Attribute 'command_endpoint': Command endpoint must be in zone 'example-masters' or in a direct child zone thereof.

At some point remembering that there are special zones for Director configuration deployment. So I set there "global-templates" and turned out to be happy. Next I tried with an empty zone configuration, so it ended up in the "director-global" zone, but still all fine.

Can you please improve the documentation accordingly?

Steps to reproduce - Plugin call

N/A

Steps to reproduce - Data

No response

Environment

icinga2 r2.14.0-1
Icinga Web 2 2.11.4
Director 1.10.2
OS: RHEL 8.8

Plugin Version

2023051201

Python version

No response

List of Python modules

No response

Additional Information

No response

@kbucheli kbucheli added the bug Something isn't working label Oct 13, 2023
@markuslf markuslf added the documentation Improvements or additions to documentation label Oct 13, 2023
@markuslf markuslf added this to the M004 milestone Oct 13, 2023
@markuslf
Copy link
Member

We will have a look, thank you!

@markuslf markuslf modified the milestones: M004, M005 Nov 27, 2023
@markuslf markuslf removed this from the M005 milestone Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants