GransonW
(Granson W)
September 30, 2024, 7:27am
1
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?
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
GransonW
(Granson W)
September 30, 2024, 11:55am
3
Yes, the deployments was successfull.
Other steps i tried are restarting icinga2 aswell as apache.
icinga2 daemon -C shows no errors.
do you have a ha-environment (2-master-setup)?
GransonW
(Granson W)
October 1, 2024, 9:36am
5
Nope, only 1 master without sattelites.
GransonW
(Granson W)
October 1, 2024, 11:21am
7
Thats the output:
/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
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.
GransonW
(Granson W)
October 1, 2024, 2:03pm
9
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
do that again:
what is the output of:
grep -Ril win-update /var/lib/icinga2/api/packages/
GransonW
(Granson W)
October 4, 2024, 6:40am
11
/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
can you post the relevant parts or all of it of the two files?
GransonW
(Granson W)
October 16, 2024, 9:41am
13
Sorry for delayed response.
service_templates.conf
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
/**
* 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
}
*/