Add Icinga agent endpoint to imported Hosts

Hello,

My hosts are imported from vSphere. They all receive a simple hostalive check via host template in the first step. Now I’ve installed Windows Agent on some VMs. What’s the best way to add service checks so they aren’t removed during the next sync?

I created an agent host template and added disk, load, and memory services.

That works when I add this template manually to the host, but the agent template is removed during the next sync.

My update policy for this Sync rule is “Replace”

Best greetings
Andreas

Attache the services via a condition in a service-set that takes effect because of something you set on the VMware side and shows up in “Custom Values and Tags” in vSphereDB.

Its my Sync properties

this works but is removing at next sync
2025-04-09_14h41_01

this do not work

and the problem

It shouldn’t matter if you have the services in a template or a set.

It looks like the host didn’t create an Endpoint in the zones.conf.

I found a solution

I added simple clone from my hostalive template where the ping command is removed and “Icinga2 Agent” field is set to “yes”

1 Like