1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
3 object CheckCommand "disk-windows" {
4 command = [ PluginDir + "/check_disk.exe" ]
8 value = "$disk_win_warn$"
9 description = "Warning threshold"
12 value = "$disk_win_crit$"
13 description = "Critical threshold"
16 value = "$disk_win_path$"
17 description = "Optional paths to check"
21 value = "$disk_win_unit$"
22 description = "Use this unit to display disk space"
25 value = "$disk_win_exclude$"
26 description = "Exclude these drives from check"
29 set_if = "$disk_win_show_used$"
30 description = "Work with used instead of free space"
35 vars.disk_win_unit = "mb"
36 vars.disk_win_warn = "20%"
37 vars.disk_win_crit = "10%"
40 object CheckCommand "load-windows" {
41 command = [ PluginDir + "/check_load.exe" ]
45 value = "$load_win_warn$"
46 description = "Warning threshold"
49 value = "$load_win_crit$"
50 description = "Critical threshold"
55 object CheckCommand "memory-windows" {
56 command = [ PluginDir + "/check_memory.exe" ]
60 value = "$memory_win_warn$"
61 description = "Warning Threshold"
64 value = "$memory_win_crit$"
65 description = "Critical Threshold"
68 value = "$memory_win_unit$"
69 description = "Use this unit to display memory"
72 set_if = "$memory_win_show_used$"
73 description = "Show used memory instead of the free memory"
78 vars.memory_win_unit = "mb"
79 vars.memory_win_warn = "10%"
80 vars.memory_win_crit = "5%"
83 object CheckCommand "network-windows" {
84 command = [ PluginDir + "/check_network.exe" ]
88 value = "$network_win_warn$"
89 description = "Warning threshold"
92 value = "$network_win_crit$"
93 description = "Critical threshold"
96 set_if = "$network_no_isatap$"
97 description = "Don't show ISATAP interfaces in output"
100 vars.network_no_isatap = true
103 object CheckCommand "perfmon-windows" {
104 command = [ PluginDir + "/check_perfmon.exe" ]
108 value = "$perfmon_win_warn$"
109 description = "Warning threshold"
112 value = "$perfmon_win_crit$"
113 description = "Critical threshold"
116 value = "$perfmon_win_counter$"
117 description = "The Performance Counter string"
120 "--performance-wait" = {
121 value = "$perfmon_win_wait$"
122 description = "Wait time between two counter collections in ms"
124 "--fmt-countertype" = {
125 value = "$perfmon_win_type$"
126 description = "Performance counter type"
129 value = "$perfmon_win_syntax$"
130 description = "Use this instead of the counter name in the perfomance data"
134 vars.performance_win_wait = 1000
135 vars.perfmon_win_type = "double"
139 template CheckCommand "ping-common-windows" {
140 command = [ PluginDir + "/check_ping.exe" ]
144 value = "$ping_win_address$"
146 description = "Address to ping"
149 value = "$ping_win_wrta$,$ping_win_wpl$%"
150 description = "Warning threshold: RTA and package loss seperated by comma"
153 value = "$ping_win_crta$,$ping_win_cpl$%"
154 description = "Warning threshold: RTA and package loss seperated by comma"
157 value = "$ping_win_packets$"
158 description = "Number of packages to send"
161 value = "$ping_win_timeout$"
162 description = "Timeout in ms"
166 vars.ping_win_packets = "5"
167 vars.ping_win_timeout = "1000"
170 object CheckCommand "ping-windows" {
171 import "ping-common-windows"
172 import "ipv4-or-ipv6"
174 vars.ping_win_address = "$check_address$"
177 object CheckCommand "ping4-windows" {
178 import "ping-common-windows"
182 vars.ping_win_address = "$address$"
185 object CheckCommand "ping6-windows" {
186 import "ping-common-windows"
190 vars.ping_win_address = "$address6$"
193 object CheckCommand "procs-windows" {
194 command = [ PluginDir + "/check_procs.exe" ]
198 value = "$procs_win_warn$"
199 description = "Warning threshold"
202 value = "$procs_win_crit$"
203 description = "Critical threshold"
206 value = "$procs_win_user$"
207 description = "Count only procs of this user"
212 object CheckCommand "service-windows" {
213 command = [ PluginDir + "/check_service.exe" ]
217 set_if = "$service_win_warn$"
218 description = "Warn instead of critical when service is not running"
221 value = "$service_win_service$"
223 description = "Service to check"
226 set_if = "$service_win_description$"
227 description = "Use service description instead of name"
232 object CheckCommand "swap-windows" {
233 command = [ PluginDir + "/check_swap.exe" ]
237 value = "$swap_win_warn$"
238 description = "Warning threshold"
241 value = "$swap_win_crit$"
242 description = "Critical threshold"
245 value = "$swap_win_unit$"
246 description = "Unit to display swap in"
249 set_if = "$swap_win_show_used$"
250 description = "Show used swap instead of the free swap"
255 vars.swap_win_unit = "mb"
256 vars.swap_win_warn = "10%"
257 vars.swap_win_crit = "5%"
260 object CheckCommand "update-windows" {
261 command = [ PluginDir + "/check_update.exe" ]
265 value = "$update_win_warn$"
266 description = "Number of updates to trigger a warning"
269 value = "$update_win_crit$"
270 description = "Number of updates to trigger a critical"
272 "--possible-reboot" = {
273 set_if = "$update_win_reboot$"
274 description = "Treat 'may need update' as 'definitely needs update'"
276 "--no-reboot-critical" = {
277 set_if = "$ignore_reboot$"
278 description = "Do not automatically return critical if an update requiring reboot is present."
285 object CheckCommand "uptime-windows" {
286 command = [ PluginDir + "/check_uptime.exe" ]
290 value = "$uptime_win_warn$"
291 description = "Warning threshold"
294 value = "$uptime_win_crit$"
295 description = "Critical threshold"
298 value = "$uptime_win_unit$"
299 description = "Time unit to use"
303 vars.uptime_win_unit = "s"
306 object CheckCommand "users-windows" {
307 command = [ PluginDir + "/check_users.exe" ]
311 value = "$users_win_warn$"
312 description = "Warning threshold"
315 value = "$users_win_crit$"
316 description = "Critical threshold"