Deployment-Error

Hello,

i have a problem with my configuration. I tried to deploy a few changes but get now error after error, after error.

I know i can deploy earlier changes and that works fine. But can i restore the configuration? When i deploy the latest working version, icinga director says: 60 objects in activity log. How can i go to last working deployment and discard the following changes?

Errors:

[2020-11-26 14:18:02 +0100] information/cli: Icinga application loader (version: r2.12.1-1)
[2020-11-26 14:18:02 +0100] information/cli: Loading configuration file(s).
[2020-11-26 14:18:02 +0100] information/ConfigItem: Committing config item(s).
[2020-11-26 14:18:02 +0100] information/ApiListener: My API identity: SERVER0071.domain.intern
[2020-11-26 14:18:02 +0100] critical/config: Error: Validation failed for object ‘SERVER0023.domain.intern!Network_Windows’ of type ‘Service’; Attribute ‘command_endpoint’: Object ‘SERVER0023.domain.intern’ of type ‘Endpoint’ does not exist.
Location: in [stage]/zones.d/SERVER0071.domain.intern/service_templates.conf: 228:5-228:32
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(226): template Service “Network_Windows” {
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(227): check_command = “network-windows”
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(228): command_endpoint = host_name
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(229): }
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(230):

[2020-11-26 14:18:02 +0100] critical/config: Error: Validation failed for object ‘SERVER0029.domain.intern!Network_Windows’ of type ‘Service’; Attribute ‘command_endpoint’: Object ‘SERVER0029.domain.intern’ of type ‘Endpoint’ does not exist.
Location: in [stage]/zones.d/SERVER0071.domain.intern/service_templates.conf: 228:5-228:32
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(226): template Service “Network_Windows” {
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(227): check_command = “network-windows”
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(228): command_endpoint = host_name
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(229): }
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(230):

[2020-11-26 14:18:02 +0100] critical/config: Error: Validation failed for object ‘SERVER0023.domain.intern!Memory_Windows’ of type ‘Service’; Attribute ‘command_endpoint’: Object ‘SERVER0023.domain.intern’ of type ‘Endpoint’ does not exist.
Location: in [stage]/zones.d/SERVER0071.domain.intern/service_templates.conf: 14:5-14:32
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(12): template Service “Memory_Windows” {
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(13): check_command = “memory-windows”
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(14): command_endpoint = host_name
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(15): }
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(16):

[2020-11-26 14:18:02 +0100] critical/config: Error: Validation failed for object ‘SERVER0014.domain.intern!Network_Windows’ of type ‘Service’; Attribute ‘command_endpoint’: Object ‘SERVER0014.domain.intern’ of type ‘Endpoint’ does not exist.
Location: in [stage]/zones.d/SERVER0071.domain.intern/service_templates.conf: 228:5-228:32
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(226): template Service “Network_Windows” {
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(227): check_command = “network-windows”
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(228): command_endpoint = host_name
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(229): }
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(230):

[2020-11-26 14:18:02 +0100] critical/config: Error: Validation failed for object ‘SERVER0014.domain.intern!CPU_Windows’ of type ‘Service’; Attribute ‘command_endpoint’: Object ‘SERVER0014.domain.intern’ of type ‘Endpoint’ does not exist.
Location: in [stage]/zones.d/SERVER0071.domain.intern/service_templates.conf: 9:5-9:32
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(7): template Service “CPU_Windows” {
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(8): check_command = “load-windows”
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(9): command_endpoint = host_name
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(10): }
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(11):

[2020-11-26 14:18:02 +0100] critical/config: Error: Validation failed for object ‘SERVER0014.domain.intern!Disk_Windows’ of type ‘Service’; Attribute ‘command_endpoint’: Object ‘SERVER0014.domain.intern’ of type ‘Endpoint’ does not exist.
Location: in [stage]/zones.d/SERVER0071.domain.intern/service_templates.conf: 3:5-3:32
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(1): template Service “Disk_Windows” {
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(2): check_command = “disk”
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(3): command_endpoint = host_name
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(4): vars.disk_wfree = “15”
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(5): }

[2020-11-26 14:18:02 +0100] critical/config: Error: Validation failed for object ‘SERVER0029.domain.intern!Memory_Windows’ of type ‘Service’; Attribute ‘command_endpoint’: Object ‘SERVER0029.domain.intern’ of type ‘Endpoint’ does not exist.
Location: in [stage]/zones.d/SERVER0071.domain.intern/service_templates.conf: 14:5-14:32
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(12): template Service “Memory_Windows” {
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(13): check_command = “memory-windows”
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(14): command_endpoint = host_name
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(15): }
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(16):

[2020-11-26 14:18:02 +0100] critical/config: Error: Validation failed for object ‘SERVER0023.domain.intern!Disk_Windows’ of type ‘Service’; Attribute ‘command_endpoint’: Object ‘SERVER0023.domain.intern’ of type ‘Endpoint’ does not exist.
Location: in [stage]/zones.d/SERVER0071.domain.intern/service_templates.conf: 3:5-3:32
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(1): template Service “Disk_Windows” {
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(2): check_command = “disk”
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(3): command_endpoint = host_name
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(4): vars.disk_wfree = “15”
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(5): }

[2020-11-26 14:18:02 +0100] critical/config: Error: Validation failed for object ‘SERVER0029.domain.intern!Disk_Windows’ of type ‘Service’; Attribute ‘command_endpoint’: Object ‘SERVER0029.domain.intern’ of type ‘Endpoint’ does not exist.
Location: in [stage]/zones.d/SERVER0071.domain.intern/service_templates.conf: 3:5-3:32
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(1): template Service “Disk_Windows” {
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(2): check_command = “disk”
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(3): command_endpoint = host_name
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(4): vars.disk_wfree = “15”
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(5): }

[2020-11-26 14:18:02 +0100] critical/config: Error: Validation failed for object ‘SERVER0029.domain.intern!CPU_Windows’ of type ‘Service’; Attribute ‘command_endpoint’: Object ‘SERVER0029.domain.intern’ of type ‘Endpoint’ does not exist.
Location: in [stage]/zones.d/SERVER0071.domain.intern/service_templates.conf: 9:5-9:32
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(7): template Service “CPU_Windows” {
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(8): check_command = “load-windows”
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(9): command_endpoint = host_name
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(10): }
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(11):

[2020-11-26 14:18:02 +0100] critical/config: Error: Validation failed for object ‘SERVER0014.domain.intern!Memory_Windows’ of type ‘Service’; Attribute ‘command_endpoint’: Object ‘SERVER0014.domain.intern’ of type ‘Endpoint’ does not exist.
Location: in [stage]/zones.d/SERVER0071.domain.intern/service_templates.conf: 14:5-14:32
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(12): template Service “Memory_Windows” {
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(13): check_command = “memory-windows”
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(14): command_endpoint = host_name
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(15): }
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(16):

[2020-11-26 14:18:02 +0100] critical/config: Error: Validation failed for object ‘SERVER0023.domain.intern!CPU_Windows’ of type ‘Service’; Attribute ‘command_endpoint’: Object ‘SERVER0023.domain.intern’ of type ‘Endpoint’ does not exist.
Location: in [stage]/zones.d/SERVER0071.domain.intern/service_templates.conf: 9:5-9:32
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(7): template Service “CPU_Windows” {
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(8): check_command = “load-windows”
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(9): command_endpoint = host_name
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(10): }
[stage]/zones.d/SERVER0071.domain.intern/service_templates.conf(11):

[2020-11-26 14:18:02 +0100] critical/config: 12 errors
[2020-11-26 14:18:02 +0100] critical/cli: Config validation failed. Re-run with ‘icinga2 daemon -C’ after fixing the config.

Best regards
Habit

HI

go this way:

Hello Stevie,

thank you very much. I know that way and used it - and it works.
But every change i do now cannot be deployed, because (i think) it tries to deploy all the further deployments i have maked before.

I’m searching for a way to “fall back” to the latest config and start new at this point with my changes.

Best regards
Habit

Hi

for my knowledge is this the only way to re-deploy old config. I don’t know if there is a way in the actual master branch. We ware still using the release 1.7.2.
So it looks like you have to fix the issues.

It looks like the director is missing some Endpoints. If you delete them from your zones.conf try tu run a new kickstart. after the director scans the config files for changes (incl. ITL definition) in your config files and delete/add them from/into the db.

Good Morning,

the topic has been resolved.

The fault was: I configured these three hosts for using a service set that requires the installed client, but the Hosts doesnt use the local client.

After removing the wrong service set, all works fine.

Thank you for your support! Have a nice Weekend. :slight_smile:

Habit

1 Like