# Host always in pending status

**URL:** <https://community.icinga.com/t/host-always-in-pending-status/5457>\
**Category:** Icinga 2\
**Created:** [September 6, 2020, 10:25pm UTC](https://community.icinga.com/t/host-always-in-pending-status/5457 "2020-09-06T22:25:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![codesmaker](https://community.icinga.com/letter_avatar_proxy/v4/letter/c/d26b3c/32.png) [@codesmaker](https://community.icinga.com/u/codesmaker)\
**Post date:** [September 6, 2020, 10:25pm UTC](https://community.icinga.com/t/host-always-in-pending-status/5457/1 "2020-09-06T22:25:35Z")

</div>

Hi,

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:

```auto
**/etc/icinga2/zone.d/host1.domain/hosts.conf**
        object Host "host1.domain" {
    check_command = "hostalive"
    address = "192.168.0.1"
    }
}

```

```auto
**/etc/icinga2/zone.conf**
    object Endpoint "icinga2.domain" {
}

object Zone "master" {
        endpoints = ["icinga2.domain"]
}

object Endpoint "host1.domain" {
        host = "192.168.0.1"
}

object Zone "host1.domain" {
       endpoints = ["host1.domain"]
        parent = "master"
}

```

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.

Any idea?

---

<div class="post-metadata">

**Author:** ![codesmaker](https://community.icinga.com/letter_avatar_proxy/v4/letter/c/d26b3c/32.png) [@codesmaker](https://community.icinga.com/u/codesmaker)\
**Post date:** [September 7, 2020, 12:57pm UTC](https://community.icinga.com/t/host-always-in-pending-status/5457/2 "2020-09-07T12:57:45Z")

</div>

Hi,

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?

Thanks

---

<div class="post-metadata">

**Author:** ![Pooh](https://community.icinga.com/letter_avatar_proxy/v4/letter/p/f05b48/32.png) [@Pooh](https://community.icinga.com/u/Pooh)\
**Post date:** [September 7, 2020, 1:14pm UTC](https://community.icinga.com/t/host-always-in-pending-status/5457/3 "2020-09-07T13:14:36Z")

</div>

No - at least - not on the machine being monitored. It obviously needs to be  
installed on the machine doing the monitoring.

[https://icinga.com/docs/icinga2/latest/doc/10-icinga-template-library/](https://icinga.com/docs/icinga2/latest/doc/10-icinga-template-library/)  
#plugin-check-command-hostalive

Hostalive simply uses ping checks to see if a machine is contactable, that’s  
all.

Antony.

---

<div class="post-metadata">

**Author:** ![log1c](https://community.icinga.com/user_avatar/community.icinga.com/log1c/32/2071_2.png) [@log1c](https://community.icinga.com/u/log1c)\
**Post date:** [September 8, 2020, 6:14am UTC](https://community.icinga.com/t/host-always-in-pending-status/5457/4 "2020-09-08T06:14:24Z")

</div>

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.

> [@codesmaker](#):
>
> object Endpoint “host1.domain” {  
> host = “192.168.0.1”  
> }
> 
> object Zone “host1.domain” {  
> endpoints = [“host1.domain”]  
> parent = “master”  
> }

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](https://community.icinga.com/t/create-topics-and-master-markdown-formatting/69)  
Thanks 🙂
