summaryrefslogtreecommitdiffstats
path: root/itl/command-plugins-windows.conf
blob: 22ab623b98891b74220fff547788a3a89e2a0e35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */

object CheckCommand "disk-windows" {
	command = [ PluginDir + "/check_disk.exe" ]

	arguments = {
		"-w" = {
			value = "$disk_win_warn$"
			description = "Warning threshold"
		}
		"-c" = {
			value = "$disk_win_crit$"
			description = "Critical threshold"
		}
		"-p" = {
			value = "$disk_win_path$"
			description = "Optional paths to check"
			repeat_key = true
		}
		"-u" = {
			value = "$disk_win_unit$"
			description = "Use this unit to display disk space"
		}
		"-x" = {
			value = "$disk_win_exclude$"
			description = "Exclude these drives from check"
		}
		"-U" = {
			set_if = "$disk_win_show_used$"
			description = "Work with used instead of free space"
		}
	}

	//The default
	vars.disk_win_unit = "mb"
	vars.disk_win_warn = "20%"
	vars.disk_win_crit = "10%"
}

object CheckCommand "load-windows" {
	command = [ PluginDir + "/check_load.exe" ]

	arguments = {
		"-w" = {
			value = "$load_win_warn$"
			description = "Warning threshold"
		}
		"-c" = {
			value = "$load_win_crit$"
			description = "Critical threshold"
		}
	}
}

object CheckCommand "memory-windows" {
	command = [ PluginDir + "/check_memory.exe" ]

	arguments = {
		"-w" = {
			value = "$memory_win_warn$"
			description = "Warning Threshold"
		}
		"-c" = {
			value = "$memory_win_crit$"
			description = "Critical Threshold"
		}
		"-u" = {
			value = "$memory_win_unit$"
			description = "Use this unit to display memory"
		}
		"-U" = {
                        set_if = "$memory_win_show_used$"
                        description = "Show used memory instead of the free memory"
                }
	}

	//The default
	vars.memory_win_unit = "mb"
	vars.memory_win_warn = "10%"
	vars.memory_win_crit = "5%"
}

object CheckCommand "network-windows" {
	command = [ PluginDir + "/check_network.exe" ]

	arguments = {
		"-w" = {
			value = "$network_win_warn$"
			description = "Warning threshold"
		}
		"-c" = {
			value = "$network_win_crit$"
			description = "Critical threshold"
		}
		"-n" = {
			set_if = "$network_no_isatap$"
			description = "Don't show ISATAP interfaces in output"
		}
	}
	vars.network_no_isatap = true
}

object CheckCommand "perfmon-windows" {
	command = [ PluginDir + "/check_perfmon.exe" ]

	arguments = {
		"-w" = {
			value = "$perfmon_win_warn$"
			description = "Warning threshold"
		}
		"-c" = {
			value = "$perfmon_win_crit$"
			description = "Critical threshold"
		}
		"-P" = {
			value = "$perfmon_win_counter$"
			description = "The Performance Counter string"
			required = true
		}
		"--performance-wait" = {
			value = "$perfmon_win_wait$"
			description = "Wait time between two counter collections in ms"
		}
		"--fmt-countertype" = {
			value = "$perfmon_win_type$"
			description = "Performance counter type"
		}
		"--perf-syntax" = {
			value = "$perfmon_win_syntax$"
			description = "Use this instead of the counter name in the perfomance data"
		}
	}

	vars.performance_win_wait = 1000
	vars.perfmon_win_type = "double"
}


template CheckCommand "ping-common-windows" {
	command = [ PluginDir + "/check_ping.exe" ]

	arguments = {
		"-H" = {
			value = "$ping_win_address$"
			required = true
			description = "Address to ping"
		}
		"-w" = {
			value = "$ping_win_wrta$,$ping_win_wpl$%"
			description = "Warning threshold: RTA and package loss seperated by comma"
		}
		"-c" = {
			value = "$ping_win_crta$,$ping_win_cpl$%"
			description = "Warning threshold: RTA and package loss seperated by comma"
		}
		"-p" = {
			value = "$ping_win_packets$"
			description = "Number of packages to send"
		}
		"-t" = {
			value = "$ping_win_timeout$"
			description = "Timeout in ms"
		}
	}

	vars.ping_win_packets = "5"
	vars.ping_win_timeout = "1000"
}

object CheckCommand "ping-windows" {
	import "ping-common-windows"
	import "ipv4-or-ipv6"

	vars.ping_win_address = "$check_address$"
}

object CheckCommand "ping4-windows" {
	import "ping-common-windows"

	command += [ "-4" ]

	vars.ping_win_address = "$address$"
}

object CheckCommand "ping6-windows" {
	import "ping-common-windows"

	command += [ "-6" ]

	vars.ping_win_address = "$address6$"
}

object CheckCommand "procs-windows" {
	command = [ PluginDir + "/check_procs.exe" ]

	arguments = {
		"-w" = {
			value = "$procs_win_warn$"
			description = "Warning threshold"
		}
		"-c" = {
			value = "$procs_win_crit$"
			description = "Critical threshold"
		}
		"-u" = {
			value = "$procs_win_user$"
			description = "Count only procs of this user"
		}
	}
}

object CheckCommand "service-windows" {
	command = [ PluginDir + "/check_service.exe" ]

	arguments = {
		"-w" = {
			set_if = "$service_win_warn$"
			description = "Warn instead of critical when service is not running"
		}
		"-s" = {
			value = "$service_win_service$"
			required = true
			description = "Service to check"
		}
		"--description" = {
			set_if = "$service_win_description$"
			description = "Use service description instead of name"
		}
	}
}

object CheckCommand "swap-windows" {
	command = [ PluginDir + "/check_swap.exe" ]

	arguments = {
		"-w" = {
			value = "$swap_win_warn$"
			description = "Warning threshold"
		}
		"-c" = {
			value = "$swap_win_crit$"
			description = "Critical threshold"
		}
		"-u" = {
			value = "$swap_win_unit$"
			description = "Unit to display swap in"
		}
		"-U" = {
			set_if = "$swap_win_show_used$"
			description = "Show used swap instead of the free swap"
		}
	}

	// Default
	vars.swap_win_unit = "mb"
	vars.swap_win_warn = "10%"
	vars.swap_win_crit = "5%"
}

object CheckCommand "update-windows" {
	command = [ PluginDir + "/check_update.exe" ]

	arguments = {
		"-w" = {
			value = "$update_win_warn$"
			description = "Number of updates to trigger a warning"
		}
		"-c" = {
			value = "$update_win_crit$"
			description = "Number of updates to trigger a critical"
		}
		"--possible-reboot" = {
			set_if = "$update_win_reboot$"
			description = "Treat 'may need update' as 'definitely needs update'"
		}
		"--no-reboot-critical" = {
			set_if = "$ignore_reboot$"
			description = "Do not automatically return critical if an update requiring reboot is present."
		}
	}

	timeout = 5m
}

object CheckCommand "uptime-windows" {
	command = [ PluginDir + "/check_uptime.exe" ]

	arguments = {
		"-w" = {
			value = "$uptime_win_warn$"
			description = "Warning threshold"
		}
		"-c" = {
			value = "$uptime_win_crit$"
			description = "Critical threshold"
		}
		"-u" = {
			value = "$uptime_win_unit$"
			description = "Time unit to use"
		}
	}

	vars.uptime_win_unit = "s"
}

object CheckCommand "users-windows" {
	command = [ PluginDir + "/check_users.exe" ]

	arguments = {
		"-w" = {
			value = "$users_win_warn$"
			description = "Warning threshold"
		}
		"-c" = {
			value = "$users_win_crit$"
			description = "Critical threshold"
		}
	}
}