Hello,

I'm trying to configure disk checks based on mountpoints and found some unexpected behaviour. When I configure vars.disk_mountpoint, the output of the check is for all mounts:

DISK OK - free space: / 2936 MB (63% inode=74%): /var 13727 MB (96% inode=99%):

When I configure the same check with vars.disk_partitions, it works as expected:
DISK OK - free space: / 2936 MB (63% inode=74%):

The config used for this test:

object Service "disktest" {
  import "generic-service"

  check_command = "disk"

  vars.disk_mountpoint = "/"
  #vars.disk_partitions = "/dev/sda1"
}

When I try the plugin with the -M option it also works as expected:
# /usr/lib/nagios/plugins/check_disk -w 80 -c 90 -M /
DISK OK - free space: /dev/sda1 2936 MB (63% inode=74%);| /dev/sda1=1701MB;4829;4819;0;4909

Did I overlook something in my config or could this be a bug?
(tested on a Debian host with the Icinga2 2.6.1-1~debmon8+1 package)

Luc
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to