]> granicus.if.org Git - icinga2/blob - itl/plugins-contrib.d/storage.conf
Merge branch 'support/2.8'
[icinga2] / itl / plugins-contrib.d / storage.conf
1 /******************************************************************************
2  * Icinga 2                                                                   *
3  * Copyright (C) 2012-2018 Icinga Development Team (https://www.icinga.com/)  *
4  *                                                                            *
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.                     *
9  *                                                                            *
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.                               *
14  *                                                                            *
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  ******************************************************************************/
19
20 object CheckCommand "glusterfs" {
21         command = [ "sudo", PluginDir + "/check_glusterfs" ]
22
23         arguments = {
24                 "--perfdata" = {
25                         set_if = "$glusterfs_perfdata$"
26                         description = "Optional. Print perfdata of all or the specified volume."
27                 }
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."
31                 }
32                 "--volume" = {
33                         value = "$glusterfs_volume$"
34                         description = "Optional. Only check the specified *VOLUME*. If --volume is not set, all volumes are checked."
35                 }
36                 "-w" = {
37                         value = "$glusterfs_disk_warning$"
38                         description = "Optional. Warn if disk usage is above *DISKWARN*. Defaults to 90 (percent)."
39                 }
40                 "-c" = {
41                         value = "$glusterfs_disk_critical$"
42                         description = "Optional. Return a critical error if disk usage is above *DISKCRIT*. Defaults to 95 (percent)."
43                 }
44                 "-W" = {
45                         value = "$glusterfs_inode_warning$"
46                         description = "Optional. Warn if inode usage is above *DISKWARN*. Defaults to 90 (percent)."
47                 }
48                 "-C" = {
49                         value = "$glusterfs_inode_critical$"
50                         description = "Optional. Return a critical error if inode usage is above *DISKCRIT*. Defaults to 95 (percent)."
51                 }
52         }
53
54         vars.glusterfs_disk_warning = 90
55         vars.glusterfs_disk_critical = 95
56         vars.glusterfs_inode_warning = 90
57         vars.glusterfs_inode_critical = 95
58 }