Hi,
I have following check:
apply Service "disks_all" {
display_name = "Disks"
check_command = "disk"
vars.disks["disk /"] = {
disk_partitions = "/"
disk_wfree = "15%"
disk_cfree = "5%"
}
vars.disks["disk /data/mysql"] = {
disk_partitions = "/data/mysql"
disk_wfree = "10%"
disk_cfree = "5%"
}
command_endpoint = host.vars.agent_endpoint
assign where host.address == "10.xx.xx.xx"
}
Using:
Icinga r2.13.6-1 on Rocky Linux 8.7
Plugin output is however:
DISK WARNING - free space: / 47595 MB (92.98% inode=100%); /data/mysql 2226633 MB (13.27% inode=100%);
Custom variables show:
disks {
disk / => {
disk_cfree => 5%
disk_partitions => /
disk_wfree => 15%
}
disk /data/mysql => {
disk_cfree => 5%
disk_partitions => /data/mysql
disk_wfree => 10%
}
}
Am I missing something? performance data says:
Label Value Max Warning Critical
/data/mysql 13.87 TiB 16.00 TiB 12.80 TiB 14.40 TiB
/ 3.51 GiB 49.99 GiB 39.99 GiB 44.99 GiB