icinga2 disable swap check

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.