icinga2 icon indicating copy to clipboard operation
icinga2 copied to clipboard

DISK UNKNOWN for / since last update

Open tumpech opened this issue 5 years ago • 1 comments

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.

tumpech avatar Jul 16 '19 15:07 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 😄

jjethwa avatar Jul 16 '19 21:07 jjethwa