1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
3 object CheckCommand "glusterfs" {
4 command = [ "sudo", PluginDir + "/check_glusterfs" ]
8 set_if = "$glusterfs_perfdata$"
9 description = "Optional. Print perfdata of all or the specified volume."
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."
16 value = "$glusterfs_volume$"
17 description = "Optional. Only check the specified *VOLUME*. If --volume is not set, all volumes are checked."
20 value = "$glusterfs_disk_warning$"
21 description = "Optional. Warn if disk usage is above *DISKWARN*. Defaults to 90 (percent)."
24 value = "$glusterfs_disk_critical$"
25 description = "Optional. Return a critical error if disk usage is above *DISKCRIT*. Defaults to 95 (percent)."
28 value = "$glusterfs_inode_warning$"
29 description = "Optional. Warn if inode usage is above *DISKWARN*. Defaults to 90 (percent)."
32 value = "$glusterfs_inode_critical$"
33 description = "Optional. Return a critical error if inode usage is above *DISKCRIT*. Defaults to 95 (percent)."
37 vars.glusterfs_disk_warning = 90
38 vars.glusterfs_disk_critical = 95
39 vars.glusterfs_inode_warning = 90
40 vars.glusterfs_inode_critical = 95
43 object CheckCommand "ceph" {
44 command = [ PluginDir + "/check_ceph.py" ]
48 value = "$ceph_exec_dir$"
50 description = "ceph executable [/usr/bin/ceph]"
53 value = "$ceph_conf_file$"
55 description = "alternative ceph conf file"
58 value = "$ceph_mon_address$"
60 description = "ceph monitor address[:port]"
63 value = "$ceph_client_id$"
65 description = "ceph client id"
68 value = "$ceph_client_name$"
70 description = "ceph client name"
73 value = "$ceph_client_key$"
75 description = "ceph client keyring file"
78 value = "$ceph_whitelist$"
80 description = "whitelist regexp for ceph health warnings"
83 set_if = "$ceph_details$"
84 description = "exec 'ceph health detail'"
89 object CheckCommand "btrfs" {
90 import "plugin-check-command"
91 command = [ "sudo", PluginDir + "/check_btrfs" ]
94 "--allocated-warning-gib" = {
96 description = "Exit with WARNING status if less than the specified amount of disk space (in GiB) is unallocated"
98 "--allocated-critical-gib" = {
100 description = "Exit with CRITICAL status if less than the specified amount of disk space (in GiB) is unallocated"
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"
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"
111 value = "$btrfs_mountpoint$"
112 description = "Path to the BTRFS mountpoint"