# Deactivated service still shows up in the serviceproblems section in the dashboard

**URL:** <https://community.icinga.com/t/deactivated-service-still-shows-up-in-the-serviceproblems-section-in-the-dashboard/14146>\
**Category:** Icinga Web\
**Tags:** service-template, icingaweb2, service, director, icinga2\
**Created:** [September 30, 2024, 7:27am UTC](https://community.icinga.com/t/deactivated-service-still-shows-up-in-the-serviceproblems-section-in-the-dashboard/14146 "2024-09-30T07:27:03Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![GransonW](https://community.icinga.com/user_avatar/community.icinga.com/gransonw/32/8071_2.png) [@GransonW](https://community.icinga.com/u/GransonW)\
**Post date:** [September 30, 2024, 7:27am UTC](https://community.icinga.com/t/deactivated-service-still-shows-up-in-the-serviceproblems-section-in-the-dashboard/14146/1 "2024-09-30T07:27:03Z")

</div>

Hi,

initially i wanted to monitor the update status with the windows-update checker from icinga. However, scince the checker and the update service need a long time to check i didn’t want to use it anymore. Therefore, i disabled/deactivated the checker via the Director in order to have the check out of the “Serviceproblem”-Tab in the Dashboard.

Problem is, that even after disabling the checker, the service is still shown in the serviceproblem section. How do i remove it from there permanently?

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

 ![image](https://community.icinga.com/uploads/default/original/2X/1/1896cb7ca831afa03ada496c04b3d8ff0740670d.png)

- Icinga Web 2 version
- Used modules and their versions (System - About)  
Icinga Web 2 Version 2.12.1  
director 1.11.1  
icingadb 1.1.3
- Web browser used  
Edge
- Icinga 2 version used (`icinga2 --version`)  
The Icinga 2 network monitoring daemon (version: r2.14.2-1)
- PHP version used (`php --version`)  
PHP 7.4.33
- Server operating system and version  
Platform: Debian GNU/Linux  
Platform version: 11 (bullseye)  
Kernel: Linux  
Kernel version: 5.10.0-32-amd64

---

<div class="post-metadata">

**Author:** ![moreamazingnick](https://community.icinga.com/user_avatar/community.icinga.com/moreamazingnick/32/7725_2.png) [@moreamazingnick](https://community.icinga.com/u/moreamazingnick)\
**Post date:** [September 30, 2024, 9:25am UTC](https://community.icinga.com/t/deactivated-service-still-shows-up-in-the-serviceproblems-section-in-the-dashboard/14146/2 "2024-09-30T09:25:33Z")

</div>

- did you deloy your changes?
- was the deployment successful?

---

<div class="post-metadata">

**Author:** ![GransonW](https://community.icinga.com/user_avatar/community.icinga.com/gransonw/32/8071_2.png) [@GransonW](https://community.icinga.com/u/GransonW)\
**Post date:** [September 30, 2024, 11:55am UTC](https://community.icinga.com/t/deactivated-service-still-shows-up-in-the-serviceproblems-section-in-the-dashboard/14146/3 "2024-09-30T11:55:51Z")

</div>

Yes, the deployments was successfull.  
Other steps i tried are restarting icinga2 aswell as apache.  
icinga2 daemon -C shows no errors.

---

<div class="post-metadata">

**Author:** ![moreamazingnick](https://community.icinga.com/user_avatar/community.icinga.com/moreamazingnick/32/7725_2.png) [@moreamazingnick](https://community.icinga.com/u/moreamazingnick)\
**Post date:** [September 30, 2024, 1:08pm UTC](https://community.icinga.com/t/deactivated-service-still-shows-up-in-the-serviceproblems-section-in-the-dashboard/14146/4 "2024-09-30T13:08:14Z")

</div>

do you have a ha-environment (2-master-setup)?

---

<div class="post-metadata">

**Author:** ![GransonW](https://community.icinga.com/user_avatar/community.icinga.com/gransonw/32/8071_2.png) [@GransonW](https://community.icinga.com/u/GransonW)\
**Post date:** [October 1, 2024, 9:36am UTC](https://community.icinga.com/t/deactivated-service-still-shows-up-in-the-serviceproblems-section-in-the-dashboard/14146/5 "2024-10-01T09:36:00Z")

</div>

Nope, only 1 master without sattelites.

---

<div class="post-metadata">

**Author:** ![moreamazingnick](https://community.icinga.com/user_avatar/community.icinga.com/moreamazingnick/32/7725_2.png) [@moreamazingnick](https://community.icinga.com/u/moreamazingnick)\
**Post date:** [October 1, 2024, 10:33am UTC](https://community.icinga.com/t/deactivated-service-still-shows-up-in-the-serviceproblems-section-in-the-dashboard/14146/6 "2024-10-01T10:33:56Z")

</div>

what is the output of:

> grep -Ril win-update /var/lib/icinga2/api/packages/

---

<div class="post-metadata">

**Author:** ![GransonW](https://community.icinga.com/user_avatar/community.icinga.com/gransonw/32/8071_2.png) [@GransonW](https://community.icinga.com/u/GransonW)\
**Post date:** [October 1, 2024, 11:21am UTC](https://community.icinga.com/t/deactivated-service-still-shows-up-in-the-serviceproblems-section-in-the-dashboard/14146/7 "2024-10-01T11:21:50Z")

</div>

Thats the output:

```auto
/var/lib/icinga2/api/packages/director/adcf5cc3-8bc8-434a-ac84-0fae16e45748/zones.d/director-global/servicesets.conf
/var/lib/icinga2/api/packages/director/adcf5cc3-8bc8-434a-ac84-0fae16e45748/zones.d/director-global/service_templates.conf
/var/lib/icinga2/api/packages/director/51c7d6a8-8dc6-4719-b964-ce45fceb37b2/zones.d/director-global/servicesets.conf
/var/lib/icinga2/api/packages/director/51c7d6a8-8dc6-4719-b964-ce45fceb37b2/zones.d/director-global/service_templates.conf

```

---

<div class="post-metadata">

**Author:** ![moreamazingnick](https://community.icinga.com/user_avatar/community.icinga.com/moreamazingnick/32/7725_2.png) [@moreamazingnick](https://community.icinga.com/u/moreamazingnick)\
**Post date:** [October 1, 2024, 11:46am UTC](https://community.icinga.com/t/deactivated-service-still-shows-up-in-the-serviceproblems-section-in-the-dashboard/14146/8 "2024-10-01T11:46:19Z")

</div>

DISCLAIMER: You are doing this at your own risk!

looks like you have 2 director configs deployed.

I would make a backup, delete this folder (‘/var/lib/icinga2/api/packages/director’) and redeploy the director config.

---

<div class="post-metadata">

**Author:** ![GransonW](https://community.icinga.com/user_avatar/community.icinga.com/gransonw/32/8071_2.png) [@GransonW](https://community.icinga.com/u/GransonW)\
**Post date:** [October 1, 2024, 2:03pm UTC](https://community.icinga.com/t/deactivated-service-still-shows-up-in-the-serviceproblems-section-in-the-dashboard/14146/9 "2024-10-01T14:03:28Z")

</div>

Removed the folder.  
Then deployed (without changes)

now the director folder shows only one config but the win-update check is still in the dashboard.

restarted the icinga2 service and daemon -C has no errors

---

<div class="post-metadata">

**Author:** ![moreamazingnick](https://community.icinga.com/user_avatar/community.icinga.com/moreamazingnick/32/7725_2.png) [@moreamazingnick](https://community.icinga.com/u/moreamazingnick)\
**Post date:** [October 1, 2024, 2:25pm UTC](https://community.icinga.com/t/deactivated-service-still-shows-up-in-the-serviceproblems-section-in-the-dashboard/14146/10 "2024-10-01T14:25:21Z")

</div>

do that again:  
what is the output of:

> grep -Ril win-update /var/lib/icinga2/api/packages/

---

<div class="post-metadata">

**Author:** ![GransonW](https://community.icinga.com/user_avatar/community.icinga.com/gransonw/32/8071_2.png) [@GransonW](https://community.icinga.com/u/GransonW)\
**Post date:** [October 4, 2024, 6:40am UTC](https://community.icinga.com/t/deactivated-service-still-shows-up-in-the-serviceproblems-section-in-the-dashboard/14146/11 "2024-10-04T06:40:35Z")

</div>

> [@moreamazingnick](#):
>
> grep -Ril win-update /var/lib/icinga2/api/packages/

```auto
/var/lib/icinga2/api/packages/director/3da455bb-88e0-4dd2-81f4-e759cf25bf2d/zones.d/director-global/servicesets.conf
/var/lib/icinga2/api/packages/director/3da455bb-88e0-4dd2-81f4-e759cf25bf2d/zones.d/director-global/service_templates.conf

```

---

<div class="post-metadata">

**Author:** ![moreamazingnick](https://community.icinga.com/user_avatar/community.icinga.com/moreamazingnick/32/7725_2.png) [@moreamazingnick](https://community.icinga.com/u/moreamazingnick)\
**Post date:** [October 4, 2024, 7:10am UTC](https://community.icinga.com/t/deactivated-service-still-shows-up-in-the-serviceproblems-section-in-the-dashboard/14146/12 "2024-10-04T07:10:10Z")

</div>

can you post the relevant parts or all of it of the two files?

---

<div class="post-metadata">

**Author:** ![GransonW](https://community.icinga.com/user_avatar/community.icinga.com/gransonw/32/8071_2.png) [@GransonW](https://community.icinga.com/u/GransonW)\
**Post date:** [October 16, 2024, 9:41am UTC](https://community.icinga.com/t/deactivated-service-still-shows-up-in-the-serviceproblems-section-in-the-dashboard/14146/13 "2024-10-16T09:41:19Z")

</div>

Sorry for delayed response.

service\_templates.conf

```auto
template Service "ping" {
    check_command = "ping"
    check_interval = 2m
    retry_interval = 3s
}

template Service "disk" {
    check_command = "disk"
    check_interval = 2m
    retry_interval = 3s
}

template Service "load" {
    check_command = "load"
    check_interval = 2m
    retry_interval = 3s
}

template Service "windows-disk" {
    check_command = "disk-windows"
    check_interval = 2m
    retry_interval = 3s
    enable_notifications = true
    enable_active_checks = true
    groups = ["standard-checks"]
    command_endpoint = host_name
}

template Service "win-network" {
    check_command = "network-windows"
    check_interval = 2m
    retry_interval = 3s
    enable_notifications = true
    enable_active_checks = true
    groups = ["standard-checks"]
    command_endpoint = host_name
}

template Service "win-memory" {
    check_command = "memory-windows"
    check_interval = 2m
    retry_interval = 3s
    enable_active_checks = true
    groups = ["standard-checks"]
    command_endpoint = host_name
}

template Service "linux-mem" {
    import "load"

    check_command = "mem"
    check_interval = 2m
    retry_interval = 3s
}

template Service "win-update" {
    check_command = "update-windows"
    check_interval = 2m
    retry_interval = 3s
    enable_notifications = true
    enable_active_checks = false
    enable_passive_checks = true
    command_endpoint = host_name
}

```

servicesets.conf

```auto
/**
 * Service Set: standard-checks
 * on host Test-Windows
 */

apply Service "load" {
    import "load"

    assign where "Test-Windows" in host.templates

    import DirectorOverrideTemplate
}

apply Service "ping" {
    import "ping"

    assign where "Test-Windows" in host.templates

    import DirectorOverrideTemplate
}

apply Service "windows-disk" {
    import "windows-disk"

    check_command = "disk-windows"
    enable_active_checks = true
    enable_passive_checks = false

    assign where "Test-Windows" in host.templates

    import DirectorOverrideTemplate
}

apply Service "win-memory" {
    import "win-memory"

    enable_notifications = true

    assign where "Test-Windows" in host.templates

    import DirectorOverrideTemplate
}

apply Service "win-network" {
    import "win-network"

    assign where "Test-Windows" in host.templates

    import DirectorOverrideTemplate
}

/* --- This object has been disabled ---
apply Service "win-update" {
    import "win-update"

    check_timeout = 15m
    enable_passive_checks = true
    enable_event_handler = true

    assign where "Test-Windows" in host.templates

    import DirectorOverrideTemplate
}
*/

```
