]> granicus.if.org Git - icinga2/blob - itl/command-plugins-windows.conf
Add repeat_key=true to check_disk.exe -p
[icinga2] / itl / command-plugins-windows.conf
1 /******************************************************************************
2  * Icinga 2                                                                   *
3  * Copyright (C) 2012-2015 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 "disk-windows" {
21         import "plugin-check-command"
22         
23         command = [ PluginDir + "/check_disk.exe" ]
24         
25         arguments = {
26                 "-w" = {
27                         value = "$disk_win_warn$"
28                         description = "Warning threshold"
29                 }
30                 "-c" = {
31                         value = "$disk_win_crit$"
32                         description = "Critical threshold"
33                 }
34                 "-p" = {
35                         value = "$disk_win_path$"
36                         description = "Optional paths to check"
37                         repeat_key = true
38                 }
39                 "-u" = {
40                         value = "$disk_win_unit$"
41                         description = "Use this unit to display disk space"
42                 }
43         }
44         
45         vars.disk_win_unit = "mb"
46         //The default
47 }
48         
49 object CheckCommand "load-windows" {
50         import "plugin-check-command"
51         
52         command = [ PluginDir + "/check_load.exe" ]
53         
54         arguments = {
55                 "-w" = {
56                         value = "$load_win_warn$"
57                         description = "Warning threshold"
58                 }
59                 "-c" = {
60                         value = "$load_win_crit$"
61                         description = "Critical threshold"
62                 }
63         }
64 }
65
66 object CheckCommand "memory-windows" {
67         import "plugin-check-command"
68         
69         command = [ PluginDir + "/check_memory.exe" ]
70         
71         arguments = {
72                 "-w" = {
73                         value = "$memory_win_warn$"
74                         description = "Warning Threshold"
75                 }
76                 "-c" = {
77                         value = "$memory_win_crit$"
78                         description = "Critical Threshold"
79                 }
80                 "-u" = {
81                         value = "$memory_win_unit$"
82                         description = "Use this unit to display memory"
83                 }
84         }
85         vars.memory_win_unit = "mb"
86         //The default
87 }
88
89 object CheckCommand "network-windows" {
90         import "plugin-check-command"
91         
92         command = [ PluginDir + "/check_network.exe" ]
93         
94         arguments = {
95                 "-w" = {
96                         value = "$network_win_warn$"
97                         description = "Warning threshold"
98                 }
99                 "-c" = {
100                         value = "$network_win_crit$"
101                         description = "Critical threshold"
102                 }
103         }
104 }
105
106 object CheckCommand "perfmon-windows" {
107         import "plugin-check-command"
108         
109         command = [ PluginDir + "/check_perfmon.exe" ]
110         
111         arguments = {
112                 "-w" = {
113                         value = "$perfmon_win_warn$"
114                         description = "Warning threshold"
115                 }
116                 "-c" = {
117                         value = "$perfmon_win_crit$"
118                         description = "Critical threshold"
119                 }
120                 "-P" = {
121                         value = "$perfmon_win_counter$"
122                         description = "The Performance Counter string"
123                         required = true
124                 }
125                 "--performance-wait" = {
126                         value = "$perfmon_win_wait$"
127                         description = "Wait time between two counter collections in ms"
128                 }
129                 "--fmt-countertype" = {
130                         value = "$perfmon_win_type$"
131                         description = "Performance counter type"
132                 }
133         }
134         
135         vars.performance_win_wait = 1000
136         vars.perfmon_win_type = "double"
137         //The default values
138 }
139
140
141 template CheckCommand "ping-common-windows" {
142         import "plugin-check-command"
143
144         command = [ PluginDir + "/check_ping.exe" ]
145
146         arguments = {
147                 "-H" = {
148                         value = "$ping_win_address$"
149                         required = true
150                         description = "Address to ping"
151                 }
152                 "-w" = {
153                         value = "$ping_win_wrta$,$ping_win_wpl$%"
154                         description = "Warning threshold: RTA and package loss seperated by comma"
155                 }
156                 "-c" = {
157                         value = "$ping_win_crta$,$ping_win_cpl$%"
158                         description = "Warning threshold: RTA and package loss seperated by comma"
159                 }
160                 "-p" = {
161                         value = "$ping_win_packets$"
162                         description = "Number of packages to send"
163                 }
164                 "-t" = {
165                         value = "$ping_win_timeout$"
166                         description = "Timeout in ms"
167                 }
168         }
169         
170         vars.ping_win_packets = "5"
171         vars.ping_win_timeout = "1000"
172         //The default values
173 }
174
175 object CheckCommand "ping-windows" {
176         import "ping-common-windows"
177         import "ipv4-or-ipv6"
178
179         vars.ping_win_address = "$check_address$"
180 }
181
182 object CheckCommand "ping4-windows" {
183         import "ping-common-windows"
184
185         command += [ "-4" ]
186
187         vars.ping_win_address = "$address$"
188 }
189
190 object CheckCommand "ping6-windows" {
191         import "ping-common-windows"
192
193         command += [ "-6" ]
194
195         vars.ping_win_address = "$address6$"
196 }
197
198 object CheckCommand "procs-windows" {
199         import "plugin-check-command"
200         
201         command = [ PluginDir + "/check_procs.exe" ]
202         
203         arguments = {
204                 "-w" = {
205                         value = "$procs_win_warn$"
206                         description = "Warning threshold"
207                 }
208                 "-c" = {
209                         value = "$procs_win_crit$"
210                         description = "Critical threshold"
211                 }
212                 "-u" = {
213                         value = "$procs_win_user$"
214                         description = "Count only procs of this user"
215                 }
216         }
217 }
218
219 object CheckCommand "service-windows" {
220         import "plugin-check-command"
221         
222         command = [ PluginDir + "/check_service.exe" ]
223         
224         arguments = {
225                 "-w" = {
226                         set_if = "$service_win_warn$"
227                         description = "Warn instead of critical when service is not running"
228                 }
229                 "-s" = {
230                         value = "$service_win_service$"
231                         required = true
232                         description = "Service to check"
233                 }
234         }
235 }
236
237 object CheckCommand "swap-windows" {
238         import "plugin-check-command"
239         
240         command = [ PluginDir + "/check_swap.exe" ]
241         
242         arguments = {
243                 "-w" = {
244                         value = "$swap_win_warn$"
245                         description = "Warning threshold"
246                 }
247                 "-c" = {
248                         value = "$swap_win_crit$"
249                         description = "Critical threshold"
250                 }
251                 "-u" = {
252                         value = "$swap_win_unit$"
253                         description = "Unit to display swap in"
254                 }
255         }
256         
257         vars.swap_win_unit = "mb"
258         //The default
259 }
260
261 object CheckCommand "update-windows" {
262         import "plugin-check-command"
263         
264         command = [ PluginDir + "/check_update.exe" ]
265         
266         arguments = {
267                 "-w" = {
268                         set_if = "$update_win_warn$"
269                         description = "Warn if there are important updates available"
270                 }
271                 "-c" = {
272                         set_if = "$update_win_crit$"
273                         description = "Critical if there are important updates that require a reboot"
274                 }
275                 "--possible-reboot" = {
276                         set_if = "$update_win_reboot$"
277                         description = "Treat 'may need update' as 'definitely needs update'"
278                 }
279         }
280         
281 }
282
283 object CheckCommand "uptime-windows" {
284         import "plugin-check-command"
285         
286         command = [ PluginDir + "/check_uptime.exe" ]
287         
288         arguments = {
289                 "-w" = {
290                         value = "$uptime_win_warn$"
291                         description = "Warning threshold"
292                 }
293                 "-c" = {
294                         value = "$uptime_win_crit$"
295                         description = "Critical threshold"
296                 }
297                 "-u" = {
298                         value = "$uptime_win_unit$"
299                         description = "Time unit to use"
300                 }
301         }
302         
303         vars.uptime_win_unit = "s"
304         //The default
305 }
306
307 object CheckCommand "users-windows" {
308         import "plugin-check-command"
309         
310         command = [ PluginDir + "/check_users.exe" ]
311         
312         arguments = {
313                 "-w" = {
314                         value = "$users_win_warn$"
315                         description = "Warning threshold"
316                 }
317                 "-c" = {
318                         value = "$users_win_crit$"
319                         description = "Critical threshold"
320                 }
321         }
322 }