]> granicus.if.org Git - icinga2/blob - itl/command-common.conf
DB IDO: Add check_source_object_id reference to endpoint objects.
[icinga2] / itl / command-common.conf
1 /******************************************************************************
2  * Icinga 2                                                                   *
3  * Copyright (C) 2012-2014 Icinga Development Team (http://www.icinga.org)    *
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 "ping4" inherits "plugin-check-command" {
21         command = [
22                 "$plugindir$/check_ping",
23                 "-4",
24                 "-H", "$address$",
25                 "-w", "$wrta$,$wpl$%",
26                 "-c", "$crta$,$cpl$%",
27                 "-p", "$packets$",
28                 "-t", "$timeout$"
29         ],
30
31         macros = {
32                 wrta = 100,
33                 wpl = 5,
34
35                 crta = 200,
36                 cpl = 15,
37
38                 packets = 5,
39                 timeout = 0
40         }
41 }
42
43 object CheckCommand "ping6" inherits "plugin-check-command" {
44         command = [
45                 "$plugindir$/check_ping",
46                 "-6",
47                 "-H", "$address6$",
48                 "-w", "$wrta$,$wpl$%",
49                 "-c", "$crta$,$cpl$%",
50                 "-p", "$packets$",
51                 "-t", "$timeout$"
52         ],
53
54         macros = {
55                 wrta = 100,
56                 wpl = 5,
57
58                 crta = 200,
59                 cpl = 15,
60
61                 packets = 5,
62                 timeout = 0
63         }
64 }
65
66 object CheckCommand "dummy" inherits "plugin-check-command" {
67         command = [
68                 "$plugindir$/check_dummy",
69                 "$state$",
70                 "$text$"
71         ],
72
73         macros = {
74                 state = 0,
75                 text = "Check was successful."
76         }
77 }
78
79 object CheckCommand "passive" inherits "dummy" {
80         macros = {
81                 state = 3,
82                 text = "No Passive Check Result Received."
83         }
84 }
85
86 object CheckCommand "tcp" inherits "plugin-check-command" {
87         command = [
88                 "$plugindir$/check_tcp",
89                 "-H", "$address$",
90                 "-p", "$port$"
91         ]
92 }
93
94 object CheckCommand "udp" inherits "plugin-check-command" {
95         command = [
96                 "$plugindir$/check_udp",
97                 "-H", "$address$",
98                 "-p", "$port$"
99         ]
100 }
101
102 object CheckCommand "http_vhost" inherits "plugin-check-command" {
103         command = [
104                 "$plugindir$/check_http",
105                 "-H", "$vhost$"
106         ]
107 }
108
109 object CheckCommand "http_ip" inherits "plugin-check-command" {
110         command = [
111                 "$plugindir$/check_http",
112                 "-H", "$address$"
113         ]
114 }
115
116 object CheckCommand "https_vhost" inherits "plugin-check-command" {
117         command = [
118                 "$plugindir$/check_http",
119                 "-H", "$vhost$", "-S"
120         ]
121 }
122
123 object CheckCommand "https_ip" inherits "plugin-check-command" {
124         command = [
125                 "$plugindir$/check_http",
126                 "-I", "$address$", "-S"
127         ]
128 }
129
130 object CheckCommand "smtp" inherits "plugin-check-command" {
131         command = [
132                 "$plugindir$/check_smtp",
133                 "-H", "$address$"
134         ]
135 }
136
137 object CheckCommand "ssmtp" inherits "plugin-check-command" {
138         command = [
139                 "$plugindir$/check_ssmtp",
140                 "-H", "$address$",
141                 "-p", "$port$"
142         ],
143
144         macros += {
145                 port = 465
146         }
147 }
148
149 object CheckCommand "ntp_time" inherits "plugin-check-command" {
150         command = [
151                 "$plugindir$/check_ntp_time",
152                 "-H", "$address$"
153         ]
154 }
155
156 object CheckCommand "ssh" inherits "plugin-check-command" {
157         command = [
158                 "$plugindir$/check_ssh",
159                 "$address$"
160         ]
161 }
162
163 object CheckCommand "disk" inherits "plugin-check-command" {
164         command = [
165                 "$plugindir$/check_disk",
166                 "-w", "$wfree$%",
167                 "-c", "$cfree$%"
168         ],
169
170         macros += {
171                 wfree = 20,
172                 cfree = 10,
173         }
174 }
175
176 object CheckCommand "users" inherits "plugin-check-command" {
177         command = [
178                 "$plugindir$/check_users",
179                 "-w", "$wgreater$",
180                 "-c", "$cgreater$"
181         ],
182
183         macros += {
184                 wgreater = 20,
185                 cgreater = 50,
186         }
187 }
188
189 object CheckCommand "processes" inherits "plugin-check-command" {
190         command = [
191                 "$plugindir$/check_procs",
192                 "-w", "$wgreater$",
193                 "-c", "$cgreater$"
194         ],
195
196         macros += {
197                 wgreater = 250,
198                 cgreater = 400,
199         }
200 }
201
202 object CheckCommand "load" inherits "plugin-check-command" {
203         command = [
204                 "$plugindir$/check_load",
205                 "-w", "$wload1$,$wload5$,$wload15$",
206                 "-c", "$cload1$,$cload5$,$cload15$"
207         ],
208
209         macros = {
210                 wload1 = 5.0,
211                 wload5 = 4.0,
212                 wload15 = 3.0,
213
214                 cload1 = 10.0,
215                 cload5 = 6.0,
216                 cload15 = 4.0
217         }
218 }
219
220 object CheckCommand "snmp" inherits "plugin-check-command" {
221         command = [
222                 "$plugindir$/check_snmp",
223                 "-H", "$address$",
224                 "-o", "$oid$",
225                 "-C", "$community$"
226         ],
227
228         macros = {
229                 community = "public"
230         }
231 }
232
233 object CheckCommand "snmp-uptime" inherits "snmp" {
234         macros += {
235                 oid = "1.3.6.1.2.1.1.3.0"
236         }
237 }
238
239 object CheckCommand "icinga" inherits "icinga-check-command" {
240 }
241
242 object CheckCommand "cluster" inherits "cluster-check-command" {
243 }