Removing a Icinga2 Client

Hello
i have deleted a virtuell Server
i have deleted the client in
/etc/icinga2/zones.conf

doing a
icinga2 daemon -C

i got a error

critical/config: Error: Validation failed for object ‘addc-01.kozo.ch!load’ of type ‘Service’; Attribute ‘command_endpoint’: Object ‘addc-01.kozo.ch’ of type ‘Endpoint’ does not exist.
Location: in /etc/icinga2/zones.d/services/service2debian9.conf:

where addc-01 the deleted Server is.
the file /etc/icinga2/zones.d/services/service2debian9.conf
it self is not calling the Host itself

so how to remove this error, or did i miss something?

have a nice day
vinc

Hi,

you must delete the host object as well or at least the command_endpoint attribute in the host object. The error can occur when a service apply rule tries to create a service, which should run on the command endpoint, while the command endpoint is no longer available.

Cheers
Michael

1 Like

Hello @mcktr

in /etc/icinga2/zones.conf
i have deleted this section, of course this on which have to bee removed :wink:

14 object Endpoint “nextcloud-1.kozo.ch” {
15 host = “10.147.42.85”
16 }
17
18 object Zone “nextcloud-1.kozo.ch” {
19 endpoints = [ “nextcloud-1.kozo.ch” ]
20 parent = “master”
21 }

Found the error, the same information where also added in a second file - with more checks to do!
thanks for the feedback so far
have a nice day
vinc

Could you please mark this topic as solved, then? So other users see that you don’t need any more help and they don’t have to read through the whole thread?