icinga2
icinga2 copied to clipboard
DISK UNKNOWN for / since last update
Hi,
While checking the latest update, we have found out that icinga2's check_disk config now excludes overlay type FS. The / FS on docker is an overlay type, so on a new install, the check for icinga2 host goes UNKNOWN. Could you please delete (or comment out) that line in /usr/share/icinga2/include/command-plugins.conf?
object CheckCommand "disk" {
command = [ PluginDir + "/check_disk" ]
arguments = {
"-w" = {
value = "$disk_wfree$"
description = "Exit with WARNING status if less than INTEGER units of disk are free or Exit with WARNING status if less than P$
required = true
order = -3
}
...
vars.disk_exclude_type = [
"none",
"tmpfs",
"sysfs",
"proc",
"configfs",
"devtmpfs",
"devfs",
"mtmfs",
"tracefs",
"cgroup",
"fuse.gvfsd-fuse",
"fuse.gvfs-fuse-daemon",
"fdescfs",
/* "overlay",*/
"nsfs",
"squashfs"
]
}
Thanks, tumpech.
Hi @tumpech
Thanks for the issue and suggestion. I don't think we should remove the object definition itself as it may be useful for other hosts depending on the configuration. Probably the best way would be to comment out the disk_partitions definition in the icinga2 server host definition in the /etc/icinga2/conf.d/hosts.conf file.
so
vars.disks["disk /"] = {
disk_partitions = "/"
}
should be
vars.disks["disk /"] = {
/* disk_partitions = "/" */
}
Let me know what you think 😄