I had to disable swap check for one of my hosts.
This is how I’v done it.
nano /etc/icinga2/conf.d/services.conf
apply Service "swap" {
import "generic-service"
check_command = "swap"
assign where host.name == NodeName
ignore where host.name == "my_host"
}
service icinga2 restart
on icinga2 service.conf I’v added the following line ignore where host.name == “my_host” and then restarted icinga2