This file is indexed.

/usr/share/icinga2/include/command-plugins-windows.conf is in icinga2-common 2.8.1-0ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
/******************************************************************************
 * Icinga 2                                                                   *
 * Copyright (C) 2012-2017 Icinga Development Team (https://www.icinga.com/)  *
 *                                                                            *
 * This program is free software; you can redistribute it and/or              *
 * modify it under the terms of the GNU General Public License                *
 * as published by the Free Software Foundation; either version 2             *
 * of the License, or (at your option) any later version.                     *
 *                                                                            *
 * This program is distributed in the hope that it will be useful,            *
 * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *
 * GNU General Public License for more details.                               *
 *                                                                            *
 * You should have received a copy of the GNU General Public License          *
 * along with this program; if not, write to the Free Software Foundation     *
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.             *
 ******************************************************************************/

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"
		}
	}
	vars.disk_win_unit = "mb"
	//The default
}

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"
		}
	}
	vars.memory_win_unit = "mb"
	//The default
}

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"
		}
		"-d" = {
			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"
		}
	}

	vars.swap_win_unit = "mb"
}

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

	arguments = {
		"-w" = {
			set_if = "$update_win_warn$"
			description = "Warn if there are important updates available"
		}
		"-c" = {
			set_if = "$update_win_crit$"
			description = "Critical if there are important updates that require a reboot"
		}
		"--possible-reboot" = {
			set_if = "$update_win_reboot$"
			description = "Treat 'may need update' as 'definitely needs update'"
		}
	}

	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"
		}
	}
}