1 object CheckCommand "8063-my-disk" {
2 command = [ PluginDir + "/check_disk" ]
7 description = "Exit with WARNING status if less than INTEGER units of disk are free or Exit with WARNING status if less than PERCENT of disk space is free"
11 value = "$disk_cfree$"
12 description = "Exit with CRITICAL status if less than INTEGER units of disk are free or Exit with CRITCAL status if less than PERCENT of disk space is free"
16 value = "$disk_inode_wfree$"
17 description = "Exit with WARNING status if less than PERCENT of inode space is free"
20 value = "$disk_inode_cfree$"
21 description = "Exit with CRITICAL status if less than PERCENT of inode space is free"
24 value = "$disk_partitions$"
25 description = "Path or partition (may be repeated)"
30 value = "$disk_partitions_excluded$"
31 description = "Ignore device (only works if -p unspecified)"
35 vars.disk_wfree = "20%"
36 vars.disk_cfree = "10%"
39 object Host "8063-my-server" {
44 vars.local_disks["basic-partitions"] = {
45 disk_partitions = [ "/", "/tmp", "/var", "/home", "/run/user/1000/gvfs" ]
49 apply Service "8063-" for (disk => config in host.vars.local_disks) {
50 import "generic-service"
51 check_command = "8063-my-disk"
56 vars.volatile_check = true
60 vars.disk_wfree = "10%"
61 vars.disk_cfree = "5%"
63 assign where host.vars.local_disks
66 apply Notification "disk-notification" to Service {
67 import "test-mail-service-notification"
69 users = [ "test-icingaadmin" ]
71 assign where service.vars.volatile_check == true