]> granicus.if.org Git - icinga2/blob - test/config/8063.conf
Move new password functions into tlsutility
[icinga2] / test / config / 8063.conf
1 object CheckCommand "8063-my-disk" {
2   command = [ PluginDir + "/check_disk" ]
3
4   arguments = {
5     "-w" = {
6       value = "$disk_wfree$"
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"
8       required = true
9     }
10     "-c" = {
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"
13       required = true
14     }
15     "-W" = {
16       value = "$disk_inode_wfree$"
17       description = "Exit with WARNING status if less than PERCENT of inode space is free"
18     }
19     "-K" = {
20       value = "$disk_inode_cfree$"
21       description = "Exit with CRITICAL status if less than PERCENT of inode space is free"
22     }
23     "-p" = {
24       value = "$disk_partitions$"
25       description = "Path or partition (may be repeated)"
26       repeat_key = true
27       order = 1
28     }
29     "-x" = {
30       value = "$disk_partitions_excluded$"
31       description = "Ignore device (only works if -p unspecified)"
32     }
33   }
34
35   vars.disk_wfree = "20%"
36   vars.disk_cfree = "10%"
37 }
38
39 object Host "8063-my-server" {
40   import "generic-host"
41   address = "127.0.0.1"
42   address6 = "::1"
43
44   vars.local_disks["basic-partitions"] = {
45     disk_partitions = [ "/", "/tmp", "/var", "/home", "/run/user/1000/gvfs" ]
46   }
47 }
48
49 apply Service "8063-" for (disk => config in host.vars.local_disks) {
50   import "generic-service"
51   check_command = "8063-my-disk"
52   check_interval = 5s
53   retry_interval = 5s
54
55   volatile = true
56   vars.volatile_check = true
57
58   vars += config
59
60   vars.disk_wfree = "10%"
61   vars.disk_cfree = "5%"
62
63   assign where host.vars.local_disks
64 }
65
66 apply Notification "disk-notification" to Service {
67   import "test-mail-service-notification"
68
69   users = [ "test-icingaadmin" ]
70
71   assign where service.vars.volatile_check == true
72 }
73