I have a host that’s always in pending status. The host config is similar to the other hosts that I have except that there is no icinga2 agent installed on that PC. I can’t figure out what am I missing. Here are the config files:
What’s interesting is that if I move the “/etc/icinga2/zone.d/host1.domain” directory to “/etc/icinga2/zone.d/master/” directory, the host comes up but then I have another problem that the cluster check always reports the host as down.
It seems that it has something to do with the fact that the icinga2 client isn’t installed on the monitored PC. Does “hostalive” only work when the client is installed?
Hello and welcome
If the agent is not installed you don’t need to (or better must not) define an endpoint and a zone.
This is only necessary for hosts where Icinga 2 is installed, so that the instances can communicate directly.
So simply remove the endpoint and zone for the non-agent host, move it to the zones.d/master folder and delete the check for that hosts cluster-zone.
OR
Install the agent on the host and connect it to the master.
If you do that you need to install the check plugins, because then the checks are executed on the agent.
PS: In future posts please use markdown formatting to get a better readability when posting config snippets. A HowTo can be found here
Thanks