monitoring-plugins icon indicating copy to clipboard operation
monitoring-plugins copied to clipboard

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

Open kbucheli opened this issue 2 years ago • 1 comments

This issue respects the following points:

  • [X] This is a bug, not a question or a setup/configuration issue.
  • [X] This issue is not already reported on Github (I've searched it).
  • [X] I use the latest release of the Monitoring Plugins (https://github.com/Linuxfabrik/monitoring-plugins/releases).
  • [X] I agree to follow Monitoring Plugins's Code of Conduct.

Which variant of the Monitoring Plugins do you use?

  • [X] .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 avatar Oct 13 '23 11:10 kbucheli

We will have a look, thank you!

markuslf avatar Oct 13 '23 11:10 markuslf