Monitoring disk space on server with multiple drives

I am new to Icinga. can you please help me get this point:

  • How does Icinga monitor disk space on Server with multiple drives.
    do I have to write a script for each drive, an will get an alarm for each one, that would not be practical for us cause we dont want to get notified because of just one drive while the other are not full.
    or it s possible to set a trigger for the total amount of disk space.

Hi and welcome to the community!

Please have a look at check_disk in the icinga template library (ITL).

You can use a dictonary for each drive in your service.



apply Service for (disk => config in host.vars.disks) {
import “generic service”
check_command = “disk”
vars += config

use the config in your host:

vars.disk [“disk /”] = {
disk_partitions = “/”
disk_wfree = “10%”
disk_cfree = “5%”

1 Like