Having a hard time figure out something…
We have 2 environments with the same config file… with the same icinga2 version… but clearly, something somewhere is missing…
#------------
apply Service "APT [Critical]" {
import "generic-service"
check_command = "apt"
command_endpoint = host.name
vars.apt_only_critical = true
check_period = "weekdaysmorningonce"
check_interval = 1m
assign where host.vars.os == "Linux" && host.vars.agent == true
}
#------------
apply Service "Memory [Virtual]" {
import "generic-service"
import "service-override-24x7"
check_command = "swap"
command_endpoint = host.name
if (!vars.swap_wfree) {
vars.swap_wfree = "90%"
}
if (!vars.swap_cfree) {
vars.swap_cfree = "60%"
}
assign where host.vars.os == "Linux" && host.vars.agent == true && host.vars.swap != false
}
Both service are applied to my host BUT the APT check is having nothing in the check_source…
Any idea where am I missing something…