Commenting master's conf.d

Hello everyone,

I have a problem with configurations,
I have installed director in my monitoring system, so I noticed that is recommend to disable recursive conf.d the problem is:
If i comment that line in icinga2.conf on the master the result is a big error during the deploy of new configurations
“Unable to detect your icinga 2 core version”

I looked in the forum but no one had this problem, they had this error in different situations

Hope someone can help

Best regards
Niccolò

Hello Niccolò!

What’s your Icinga 2 version?

Hello, running the command icinga2 -V i got this

icinga2 - The Icinga 2 network monitoring daemon (version: r2.13.3-1)

And with the conf.d commented out how many ApiUsers does icinga2 daemon -C list?

The only information about API is this

[2023-02-02 13:00:01 +0100] information/ApiListener: My API identity: monitor-master

I don’t see any api user

thank you so much

Please share the output.

Blockquote
[2023-02-02 15:38:08 +0100] information/cli: Icinga application loader (version: r2.13.3-1)
[2023-02-02 15:38:08 +0100] information/cli: Loading configuration file(s).
[2023-02-02 15:38:08 +0100] warning/config: Ignoring directory ‘/var/lib/icinga2/api/zones/satellite-test1.blueday.it’ for unknown zone ‘satellite-test1.blueday.it’.
[2023-02-02 15:38:08 +0100] information/ConfigItem: Committing config item(s).
[2023-02-02 15:38:08 +0100] information/ApiListener: My API identity: monitor-master
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘stampante-modello’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 83:1-83:33) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘qualsiasi_host-tcp’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 91:1-91:34) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘stampante-messaggi’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 99:1-99:34) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘stampante-consumabile’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 107:1-107:37) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘stampante-pagine’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 115:1-115:32) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘stampante-cassetto-1’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 123:1-123:36) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘stampante-cassetto-3’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 131:1-131:36) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘linux-agent-carico’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 449:1-449:34) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘linux-agent-disk’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 457:1-457:32) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘linux-agent-icinga2’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 465:1-465:35) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘linux-agent-memoria’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 473:1-473:35) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘linux-agent-processi’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 481:1-481:36) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘linux-agent-ssh’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 489:1-489:31) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘linux-agent-swap’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 497:1-497:32) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘linux-agent-utenti’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 505:1-505:34) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘windows-nrpe-indirizzo-ip’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 633:1-633:41) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘windows-nrpe-servizi-auto’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 641:1-641:41) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘windows-nrpe-sistema-operativo’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 649:1-649:46) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘windows-nrpe-version’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 657:1-657:36) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘windows-nrpe-processo-fmserver.exe’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 665:1-665:50) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘windows-nrpe-servizio-filemaker’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 674:1-674:47) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘windows-nrpe-disco-C’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 683:1-683:36) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] warning/ApplyRule: Apply rule ‘windows-nrpe-disco-D’ (in /var/lib/icinga2/api/packages/director/b444a112-ccdd-4e90-9ebd-c8eeab8a2782/zones.d/director-global/servicesets.conf: 692:1-692:36) for type ‘Service’ does not match anywhere!
[2023-02-02 15:38:09 +0100] information/ConfigItem: Instantiated 1 IcingaApplication.
[2023-02-02 15:38:09 +0100] information/ConfigItem: Instantiated 330 Hosts.
[2023-02-02 15:38:09 +0100] information/ConfigItem: Instantiated 1 NotificationCommand.
[2023-02-02 15:38:09 +0100] information/ConfigItem: Instantiated 1 FileLogger.
[2023-02-02 15:38:09 +0100] information/ConfigItem: Instantiated 1 CheckerComponent.
[2023-02-02 15:38:09 +0100] information/ConfigItem: Instantiated 1 IdoMysqlConnection.
[2023-02-02 15:38:09 +0100] information/ConfigItem: Instantiated 4 Zones.
[2023-02-02 15:38:09 +0100] information/ConfigItem: Instantiated 1 ExternalCommandListener.
[2023-02-02 15:38:09 +0100] information/ConfigItem: Instantiated 1 ApiListener.
[2023-02-02 15:38:09 +0100] information/ConfigItem: Instantiated 2 Endpoints.
[2023-02-02 15:38:09 +0100] information/ConfigItem: Instantiated 268 CheckCommands.
[2023-02-02 15:38:09 +0100] information/ConfigItem: Instantiated 1 NotificationComponent.
[2023-02-02 15:38:09 +0100] information/ConfigItem: Instantiated 576 Services.
[2023-02-02 15:38:09 +0100] information/ConfigItem: Instantiated 2 ServiceGroups.
[2023-02-02 15:38:09 +0100] information/ScriptGlobal: Dumping variables to file ‘/var/cache/icinga2/icinga2.vars’
[2023-02-02 15:38:09 +0100] information/cli: Finished validating the configuration file(s).

/etc/icinga2/icinga2.conf must end like this:

// Disabled by the node setup CLI command on 2023-02-02 14:51:35 +0000
// include_recursive “conf.d”
// Added by the node setup CLI command on 2023-02-02 14:51:35 +0000
include “conf.d/api-users.conf”

Ok can i write it manually or should i follow the node setup?

my master’s icinga2.conf terminates with:

//include_recursive “conf.d”

i’ve manually added it at the moment

Now deplyment are working! thank you!

So now should i set cluser zone = director global in all my services?

Manually unless added automatically.

No idea what’s that for.

Now that conf.d is commented i dont see so many services that were visible before, in a previous post @rsx told me to put services in director global.

So now that this problem of deployment is resolved i think i should set my services’ cluster zone as director global, so they can run also in my satellite

1 Like