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