I'm trying to exclude a partition from check_disk
command in Icinga2 and it's not working as expected.
The problem is due to /snap/core
being recognised as a partition like this.
So, I've opened the hosts
file and added disk_partitions_excluded
from the documentation.
/* Define disks and attributes for service apply rules in `services.conf`. */
vars.disks["disk"] = {
/* No parameters. */
disk_partitions_excluded = "/snap/core/*"
}
vars.disks["disk /"] = {
disk_partitions = "/"
}
But even after doing so and restarting Icinga2
with systemcl restart icinga2
the error doesn't go away.