]> granicus.if.org Git - icinga2/blob - itl/plugins-contrib.d/big-data.conf
Merge pull request #6896 from Icinga/bugfix/notification-delay-5561
[icinga2] / itl / plugins-contrib.d / big-data.conf
1 /******************************************************************************
2  * Icinga 2                                                                   *
3  * Copyright (C) 2012-2018 Icinga Development Team (https://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 "cloudera_service_status" {
21         command = [ PluginDir + "/check_cloudera_service_status.py" ]
22
23         arguments = {
24                 "-H" = {
25                         description = "host"
26                         value       = "$cloudera_host$"
27                         required    = true
28                 }
29                 "-P" = {
30                         description = "port"
31                         value       = "$cloudera_port$"
32                         required    = false
33                 }
34                 "-u" = {
35                         description = "user"
36                         value       = "$cloudera_user$"
37                         required    = true
38                 }
39                 "-p" = {
40                         description = "pass"
41                         value       = "$cloudera_pass$"
42                         required    = true
43                 }
44                 "-v" = {
45                         description = "api_version"
46                         value       = "$cloudera_api_version$"
47                         required    = true
48                 }
49                 "-c" = {
50                         description = "cluster"
51                         value       = "$cloudera_cluster$"
52                         required    = true
53                 }
54                 "-s" = {
55                         description = "service"
56                         value       = "$cloudera_service$"
57                         required    = true
58                 }
59                 "-k" = {
60                         description = "verify_ssl"
61                         value       = "$cloudera_verify_ssl$"
62                         required    = false
63                 }
64         }
65 }
66
67 object CheckCommand "cloudera_hdfs_space" {
68         command = [ PluginDir + "/check_cloudera_hdfs_space.py" ]
69
70         arguments = {
71                 "-H" = {
72                         description = "Namenode host"
73                         value       = "$cloudera_hdfs_space_host$"
74                         required    = true
75                 }
76                 "-P" = {
77                         description = "Namenode port (default 50070)"
78                         value       = "$cloudera_hdfs_space_port$"
79                         required    = false
80                 }
81                 "-d" = {
82                         description = "HDFS disk to check"
83                         value       = "$cloudera_hdfs_space_disk$"
84                         required    = true
85                 }
86                 "-w" = {
87                         description = "Warning threshold in percent"
88                         value       = "$cloudera_hdfs_space_warn$"
89                         required    = true
90                 }
91                 "-c" = {
92                         description = "Critical threshold in percent"
93                         value       = "$cloudera_hdfs_space_crit$"
94                         required    = true
95                 }
96         }
97 }
98
99 object CheckCommand "cloudera_hdfs_files" {
100         command = [ PluginDir + "/check_cloudera_hdfs_files.py" ]
101
102         arguments = {
103                 "-H" = {
104                         description = "Namenode host"
105                         value       = "$cloudera_hdfs_files_host$"
106                         required    = true
107                 }
108                 "-P" = {
109                         description = "Namenode port (default 50070)"
110                         value       = "$cloudera_hdfs_files_port$"
111                         required    = false
112                 }
113                 "-w" = {
114                         description = "Warning threshold"
115                         value       = "$cloudera_hdfs_files_warn$"
116                         required    = true
117                 }
118                 "-c" = {
119                         description = "Critical threshold"
120                         value       = "$cloudera_hdfs_files_crit$"
121                         required    = true
122                 }
123                 "-m" = {
124                         description = "Max files count that causes problems (default 140000000)"
125                         value       = "$cloudera_hdfs_files_max$"
126                         required    = false
127                 }
128         }
129 }