Director (Zone ?) - set up service + serviceset

Hello,

Under director, I tried to set up some services, it failed to deploy - error seems to be about “zone”… (I already defined the zone at kickstart ?!)

Under “Cluster Zone” I have 3 choices : -director-global, -global-template and -my-server-name (on which everytihng is running DB + Ic2 + ICweb2,…)

error :

[2024-12-10 20:25:50 +0100] information/cli: Icinga application loader (version: r2.14.2-1)
[2024-12-10 20:25:50 +0100] information/cli: Loading configuration file(s).
[2024-12-10 20:25:50 +0100] information/ConfigItem: Committing config item(s).
[2024-12-10 20:25:50 +0100] information/ApiListener: My API identity: lmonicp24.lx.finbel.intra
[2024-12-10 20:25:50 +0100] critical/config: Error: Validation failed for object 'MySERVERNAME[HiddenForPrivacy]!Disks' of type 'Service'; Attribute 'command_endpoint': Checkable with command endpoint requires a zone. Please check the troubleshooting documentation.
Location: in [stage]/zones.d/director-global/servicesets.conf: 9:1-9:21
[stage]/zones.d/director-global/servicesets.conf(7):  */
[stage]/zones.d/director-global/servicesets.conf(8): 
[stage]/zones.d/director-global/servicesets.conf(9): apply Service "Disks" {
                                                     ^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/director-global/servicesets.conf(10):     import "Linux Disk"
[stage]/zones.d/director-global/servicesets.conf(11): 
[2024-12-10 20:25:50 +0100] critical/config: 1 error
[2024-12-10 20:25:50 +0100] critical/cli: Config validation failed. Re-run with 'icinga2 daemon -C' after fixing the config.

I attached sceenshot to give an idea + error message





Thanks : :wink:

  • Icinga Web 2 version - latest
  • Web browser used - =firefox
  • Icinga 2 version used (icinga2 -- latest)
  • RHEL - 9

Is the agent installed on MySERVERNAME[HiddenForPrivacy]?
Is run on agent set?

Which agent ? thanks
The [SERVER] is running icinga, web, director, DB,… everything and agent / plugins are installed : yes

I’m discovering director.
I first created services in which I included in a setofservice.

What surprise me is (so far was ok and then nothing can be deployed anymore)

critical/config: Error: Validation failed for object 'MySERVERICinga[HiddenForPrivacy]!Disks' of type 'Service'; Attribute 'command_endpoint': Checkable with command endpoint requires a zone. Please check the troubleshooting documentation.
Location: in [stage]/zones.d/director-global/servicesets.conf: 9:1-9:21

The icinga2 agent :wink:
I set run on agent yes if a host has the icinga2 agent installed.
So, is this your Icinga master?
Did you run the kickstart under https://your.icinga/icingaweb2/director/kickstart?

yes icinga is master,
no agent installed on client server (can i push it from master to client ?)
Yes I ran Kickstart previousely

no agent installed on client server (can i push it from master to client ?)

So only run on agent no will work for the client server.
Maybe only apply the service set to hosts hat are linux and have the agent installed?

What is the zone of MySERVERICinga[HiddenForPrivacy] as the config check complains about it not being in a zone.