1 /******************************************************************************
3 * Copyright (C) 2012-2018 Icinga Development Team (https://www.icinga.com/) *
5 * This program is free software; you can redistribute it and/or *
6 * modify it under the terms of the GNU General Public License *
7 * as published by the Free Software Foundation; either version 2 *
8 * of the License, or (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the Free Software Foundation *
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
18 ******************************************************************************/
20 object CheckCommand "glusterfs" {
21 command = [ "sudo", PluginDir + "/check_glusterfs" ]
25 set_if = "$glusterfs_perfdata$"
26 description = "Optional. Print perfdata of all or the specified volume."
28 "--warnonfailedheal" = {
29 set_if = "$glusterfs_warnonfailedheal$"
30 description = "Optional. Warn if the *heal-failed* log contains entries. The log can be cleared by restarting glusterd."
33 value = "$glusterfs_volume$"
34 description = "Optional. Only check the specified *VOLUME*. If --volume is not set, all volumes are checked."
37 value = "$glusterfs_disk_warning$"
38 description = "Optional. Warn if disk usage is above *DISKWARN*. Defaults to 90 (percent)."
41 value = "$glusterfs_disk_critical$"
42 description = "Optional. Return a critical error if disk usage is above *DISKCRIT*. Defaults to 95 (percent)."
45 value = "$glusterfs_inode_warning$"
46 description = "Optional. Warn if inode usage is above *DISKWARN*. Defaults to 90 (percent)."
49 value = "$glusterfs_inode_critical$"
50 description = "Optional. Return a critical error if inode usage is above *DISKCRIT*. Defaults to 95 (percent)."
54 vars.glusterfs_disk_warning = 90
55 vars.glusterfs_disk_critical = 95
56 vars.glusterfs_inode_warning = 90
57 vars.glusterfs_inode_critical = 95
60 object CheckCommand "ceph" {
61 command = [ PluginDir + "/check_ceph.py" ]
65 value = "$ceph_exec_dir$"
67 description = "ceph executable [/usr/bin/ceph]"
70 value = "$ceph_conf_file$"
72 description = "alternative ceph conf file"
75 value = "$ceph_mon_address$"
77 description = "ceph monitor address[:port]"
80 value = "$ceph_client_id$"
82 description = "ceph client id"
85 value = "$ceph_client_name$"
87 description = "ceph client name"
90 value = "$ceph_client_key$"
92 description = "ceph client keyring file"
95 value = "$ceph_whitelist$"
97 description = "whitelist regexp for ceph health warnings"
100 set_if = "$ceph_details$"
101 description = "exec 'ceph health detail'"