# Host and Service checks showing pending status

**URL:** <https://community.icinga.com/t/host-and-service-checks-showing-pending-status/8779>\
**Category:** Icinga Director\
**Tags:** api, director, icinga2\
**Created:** [December 1, 2021, 5:36pm UTC](https://community.icinga.com/t/host-and-service-checks-showing-pending-status/8779 "2021-12-01T17:36:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nijeshnalan](https://community.icinga.com/user_avatar/community.icinga.com/nijeshnalan/32/4970_2.png) [@nijeshnalan](https://community.icinga.com/u/nijeshnalan)\
**Post date:** [December 1, 2021, 5:36pm UTC](https://community.icinga.com/t/host-and-service-checks-showing-pending-status/8779/1 "2021-12-01T17:36:10Z")

</div>

Hello,

I have configured icinga2 master and satellite server and added a new host via Icinga director. But the host/check is stuck at pending status. I believe the zones and other information are not transferred to satellite. I have checked the api user works from master and satellite. As I am really new to Icinga 2, I am not sure what other things needs to check. Also, checks from master node is working and able to add a new host with master as check source.

**Zone:**

 ![image](https://community.icinga.com/uploads/default/original/2X/a/a24310839a5ee893ccd4c41664f402ca5ce7994c.png)

**Endpoint:**

 ![image](https://community.icinga.com/uploads/default/original/2X/a/ac1754c1dc744167ad62c1847e689920cc62cba9.png)

**Host template:**

 ![image](https://community.icinga.com/uploads/default/original/2X/a/abdc922951fb8dfb0076be6b0707a28b2c0899e3.png)

**Host:**

 ![image](https://community.icinga.com/uploads/default/original/2X/0/06d863f778f498a30d2dc17271586e0caff9ab49.png)

- Director version: 1.8.1
- Icinga Web 2 version: 2.9.5
- Icinga 2 version: 2.13.2-1
- Operating System and version: CentOS Linux release 7.9.2009 (Core)
- Webserver, PHP versions: Apache 2.4.6, PHP 7.3.29

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![stevie-sy](https://community.icinga.com/letter_avatar_proxy/v4/letter/s/898d66/32.png) [@stevie-sy](https://community.icinga.com/u/stevie-sy)\
**Post date:** [December 2, 2021, 7:19am UTC](https://community.icinga.com/t/host-and-service-checks-showing-pending-status/8779/2 "2021-12-02T07:19:45Z")

</div>

Hi,

if your host “[host1.default.com](http://host1.default.com)” is an agent, the option “Icinga2 Agent” must be yes 😉

---

<div class="post-metadata">

**Author:** ![nijeshnalan](https://community.icinga.com/user_avatar/community.icinga.com/nijeshnalan/32/4970_2.png) [@nijeshnalan](https://community.icinga.com/u/nijeshnalan)\
**Post date:** [December 2, 2021, 11:07am UTC](https://community.icinga.com/t/host-and-service-checks-showing-pending-status/8779/3 "2021-12-02T11:07:08Z")

</div>

Hello,

The problem is the api is not syncing files to the satellite. I have the following configuration in my /etc/icinga2/zones.conf file.

```auto
object Zone "global-templates" {
        global = true
}

```

and in satellite, I have **accept\_config** enabled in the **api** feature. I have the following zones inside /var/lib/icinga2/api/zones/ directory in master icinga server.

```auto
[root@master ~]# tree /var/lib/icinga2/api/zones/
/var/lib/icinga2/api/zones/
|-- bangalore
| `-- director
| |-- host_templates.conf
| `-- hosts.conf
|-- director-global
| `-- director
| `-- 001-director-basics.conf
`-- master.icinga.com
    `-- director
        |-- endpoints.conf
        |-- host_templates.conf
        |-- hosts.conf
        `-- zones.conf

6 directories, 7 files
[root@master ~]#

```

but only director-global zone in satellite:

```auto
[root@sat1 ~]# tree /var/lib/icinga2/api/zones/
/var/lib/icinga2/api/zones/
`-- director-global
    `-- director
        `-- 001-director-basics.conf

2 directories, 1 file
[root@sat1 ~]#

```

---

<div class="post-metadata">

**Author:** ![rsx](https://community.icinga.com/user_avatar/community.icinga.com/rsx/32/2094_2.png) [@rsx](https://community.icinga.com/u/rsx)\
**Post date:** [December 2, 2021, 1:20pm UTC](https://community.icinga.com/t/host-and-service-checks-showing-pending-status/8779/4 "2021-12-02T13:20:24Z")

</div>

“One thing you **must not** configure inside the Director itself, are master/satellite and global zones. They need to exist on the agent before any config sync happens. Otherwise you have a chicken egg problem.”

> [@Icinga 2.11 released](https://community.icinga.com/t/icinga-2-11-released/2255):
>
> Announcement Blog post: [https://icinga.com/2019/09/19/icinga-2-11/](https://icinga.com/2019/09/19/icinga-2-11/) Twitter Release Feed: [https://twitter.com/icinga/status/1174311275234504704](https://twitter.com/icinga/status/1174311275234504704) Bugfix Releases 2.11.2: [https://icinga.com/2019/10/24/icinga-2-11-2/](https://icinga.com/2019/10/24/icinga-2-11-2/) 2.11.1: [https://icinga.com/2019/10/17/icinga-2-11-1-release/](https://icinga.com/2019/10/17/icinga-2-11-1-release/) Changes [Issue and PRs](https://github.com/Icinga/icinga2/issues?utf8=%E2%9C%93&q=milestone%3A2.11.0) Notes Upgrading docs: [https://icinga.com/docs/icinga2/snapshot/doc/16-upgrading-icinga-2/](https://icinga.com/docs/icinga2/snapshot/doc/16-upgrading-icinga-2/) Thanks to all contributors: [Obihoernchen](https://github.com/Icinga/icinga2/pulls?q=is%3Apr+author%3AObihoernchen), [dasJ](https://github.com/Icinga/icinga2/pulls?q=is%3Apr+author%3AdasJ), [sebastic](https://github.com/Icinga/icinga2/pulls?q=is%3Apr+author%3Asebastic), [waja](https://github.com/Icinga/icinga2/pulls?q=is%3Apr+author%3Awaja), [BarbUk](https://github.com/Icinga/icinga2/pulls?q=is%3Apr+author%3ABarbUk), [alanlitster](https://github.com/Icinga/icinga2/pulls?q=is%3Apr+author%3Aalanlitster), [mcktr](https://github.com/Icinga/icinga2/pulls?q=is%3Apr+author%3Amcktr), [KAMI911](https://github.com/Icinga/icinga2/pulls?q=is%3Apr+author%3AKAMI911), [peteec…](https://github.com/Icinga/icinga2/pulls?q=is%3Apr+author%3Apeteeckel)

---

<div class="post-metadata">

**Author:** ![stevie-sy](https://community.icinga.com/letter_avatar_proxy/v4/letter/s/898d66/32.png) [@stevie-sy](https://community.icinga.com/u/stevie-sy)\
**Post date:** [December 2, 2021, 1:21pm UTC](https://community.icinga.com/t/host-and-service-checks-showing-pending-status/8779/5 "2021-12-02T13:21:25Z")

</div>

As I wrote above, turn the option Icinga2 Agent to “yes” at your host " [http://host1.default.com/”](http://host1.default.com/%E2%80%9D).

Whithout this, how should your master know that this is an agent? With this setting your host is a normal device. So why should the the director sync a config to a normal device? If the option is set to “yes” the director is doing some magic in the back like generating a endpoint defination, zone definition etc.

---

<div class="post-metadata">

**Author:** ![nijeshnalan](https://community.icinga.com/user_avatar/community.icinga.com/nijeshnalan/32/4970_2.png) [@nijeshnalan](https://community.icinga.com/u/nijeshnalan)\
**Post date:** [December 6, 2021, 1:43pm UTC](https://community.icinga.com/t/host-and-service-checks-showing-pending-status/8779/6 "2021-12-06T13:43:07Z")

</div>

@rsx @stevie-sy Thank you guys for helping me out. I resolved this issue by deleting the satellite zone created by using the director and created it manually in zones.conf. Thanks a ton!
