]> granicus.if.org Git - icinga2/blob - itl/plugins-contrib.d/storage.conf
Merge pull request #6974 from Icinga/feature/copyright-generic
[icinga2] / itl / plugins-contrib.d / storage.conf
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 object CheckCommand "glusterfs" {
4         command = [ "sudo", PluginDir + "/check_glusterfs" ]
5
6         arguments = {
7                 "--perfdata" = {
8                         set_if = "$glusterfs_perfdata$"
9                         description = "Optional. Print perfdata of all or the specified volume."
10                 }
11                 "--warnonfailedheal" = {
12                         set_if = "$glusterfs_warnonfailedheal$"
13                         description = "Optional. Warn if the *heal-failed* log contains entries. The log can be cleared by restarting glusterd."
14                 }
15                 "--volume" = {
16                         value = "$glusterfs_volume$"
17                         description = "Optional. Only check the specified *VOLUME*. If --volume is not set, all volumes are checked."
18                 }
19                 "-w" = {
20                         value = "$glusterfs_disk_warning$"
21                         description = "Optional. Warn if disk usage is above *DISKWARN*. Defaults to 90 (percent)."
22                 }
23                 "-c" = {
24                         value = "$glusterfs_disk_critical$"
25                         description = "Optional. Return a critical error if disk usage is above *DISKCRIT*. Defaults to 95 (percent)."
26                 }
27                 "-W" = {
28                         value = "$glusterfs_inode_warning$"
29                         description = "Optional. Warn if inode usage is above *DISKWARN*. Defaults to 90 (percent)."
30                 }
31                 "-C" = {
32                         value = "$glusterfs_inode_critical$"
33                         description = "Optional. Return a critical error if inode usage is above *DISKCRIT*. Defaults to 95 (percent)."
34                 }
35         }
36
37         vars.glusterfs_disk_warning = 90
38         vars.glusterfs_disk_critical = 95
39         vars.glusterfs_inode_warning = 90
40         vars.glusterfs_inode_critical = 95
41 }
42
43 object CheckCommand "ceph" {
44         command = [ PluginDir + "/check_ceph.py" ]
45
46         arguments = {
47                 "-e" = {
48                         value = "$ceph_exec_dir$"
49                         required = false
50                         description = "ceph executable [/usr/bin/ceph]"
51                 }
52                 "-c" = {
53                         value = "$ceph_conf_file$"
54                         required = false
55                         description = "alternative ceph conf file"
56                 }
57                 "-m" = {
58                         value = "$ceph_mon_address$"
59                         required = false
60                         description = "ceph monitor address[:port]"
61                 }
62                 "-i" = {
63                         value = "$ceph_client_id$"
64                         required = false
65                         description = "ceph client id"
66                 }
67                 "-n" = {
68                         value = "$ceph_client_name$"
69                         required = false
70                         description = "ceph client name"
71                 }
72                 "-k" = {
73                         value = "$ceph_client_key$"
74                         required = false
75                         description = "ceph client keyring file"
76                 }
77                 "-w" = {
78                         value = "$ceph_whitelist$"
79                         required = false
80                         description = "whitelist regexp for ceph health warnings"
81                 }
82                 "-d" = {
83                         set_if = "$ceph_details$"
84                         description = "exec 'ceph health detail'"
85                 }
86         }
87 }
88
89 object CheckCommand "btrfs" {
90         import "plugin-check-command"
91         command = [ "sudo", PluginDir + "/check_btrfs" ]
92
93         arguments = {
94                 "--allocated-warning-gib" = {
95                         value = "$btrfs_awg$"
96                         description = "Exit with WARNING status if less than the specified amount of disk space (in GiB) is unallocated"
97                 }
98                 "--allocated-critical-gib" = {
99                         value = "$btrfs_acg$"
100                         description = "Exit with CRITICAL status if less than the specified amount of disk space (in GiB) is unallocated"
101                 }
102                 "--allocated-warning-percent" = {
103                         value = "$btrfs_awp$"
104                         description = "Exit with WARNING status if more than the specified percent of disk space is allocated"
105                 }
106                 "--allocated-critical-percent" = {
107                         value = "$btrfs_acp$"
108                         description = "Exit with CRITICAL status if more than the specified percent of disk space is allocated"
109                 }
110                 "--mountpoint" = {
111                         value = "$btrfs_mountpoint$"
112                         description = "Path to the BTRFS mountpoint"
113                         required = true
114                 }
115         }
116         vars.btrfs_awp = 80
117         vars.btrfs_acp = 90
118 }
119