1 /******************************************************************************
3 * Copyright (C) 2012-2018 Icinga Development Team (https://www.icinga.com/) *
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. *
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. *
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 ******************************************************************************/
20 object CheckCommand "disk-windows" {
21 command = [ PluginDir + "/check_disk.exe" ]
25 value = "$disk_win_warn$"
26 description = "Warning threshold"
29 value = "$disk_win_crit$"
30 description = "Critical threshold"
33 value = "$disk_win_path$"
34 description = "Optional paths to check"
38 value = "$disk_win_unit$"
39 description = "Use this unit to display disk space"
42 value = "$disk_win_exclude$"
43 description = "Exclude these drives from check"
46 set_if = "$disk_win_show_used$"
47 description = "Work with used instead of free space"
52 vars.disk_win_unit = "mb"
53 vars.disk_win_warn = "20%"
54 vars.disk_win_crit = "10%"
57 object CheckCommand "load-windows" {
58 command = [ PluginDir + "/check_load.exe" ]
62 value = "$load_win_warn$"
63 description = "Warning threshold"
66 value = "$load_win_crit$"
67 description = "Critical threshold"
72 object CheckCommand "memory-windows" {
73 command = [ PluginDir + "/check_memory.exe" ]
77 value = "$memory_win_warn$"
78 description = "Warning Threshold"
81 value = "$memory_win_crit$"
82 description = "Critical Threshold"
85 value = "$memory_win_unit$"
86 description = "Use this unit to display memory"
89 set_if = "$memory_win_show_used$"
90 description = "Show used memory instead of the free memory"
95 vars.memory_win_unit = "mb"
96 vars.memory_win_warn = "10%"
97 vars.memory_win_crit = "5%"
100 object CheckCommand "network-windows" {
101 command = [ PluginDir + "/check_network.exe" ]
105 value = "$network_win_warn$"
106 description = "Warning threshold"
109 value = "$network_win_crit$"
110 description = "Critical threshold"
113 set_if = "$network_no_isatap$"
114 description = "Don't show ISATAP interfaces in output"
117 vars.network_no_isatap = true
120 object CheckCommand "perfmon-windows" {
121 command = [ PluginDir + "/check_perfmon.exe" ]
125 value = "$perfmon_win_warn$"
126 description = "Warning threshold"
129 value = "$perfmon_win_crit$"
130 description = "Critical threshold"
133 value = "$perfmon_win_counter$"
134 description = "The Performance Counter string"
137 "--performance-wait" = {
138 value = "$perfmon_win_wait$"
139 description = "Wait time between two counter collections in ms"
141 "--fmt-countertype" = {
142 value = "$perfmon_win_type$"
143 description = "Performance counter type"
146 value = "$perfmon_win_syntax$"
147 description = "Use this instead of the counter name in the perfomance data"
151 vars.performance_win_wait = 1000
152 vars.perfmon_win_type = "double"
156 template CheckCommand "ping-common-windows" {
157 command = [ PluginDir + "/check_ping.exe" ]
161 value = "$ping_win_address$"
163 description = "Address to ping"
166 value = "$ping_win_wrta$,$ping_win_wpl$%"
167 description = "Warning threshold: RTA and package loss seperated by comma"
170 value = "$ping_win_crta$,$ping_win_cpl$%"
171 description = "Warning threshold: RTA and package loss seperated by comma"
174 value = "$ping_win_packets$"
175 description = "Number of packages to send"
178 value = "$ping_win_timeout$"
179 description = "Timeout in ms"
183 vars.ping_win_packets = "5"
184 vars.ping_win_timeout = "1000"
187 object CheckCommand "ping-windows" {
188 import "ping-common-windows"
189 import "ipv4-or-ipv6"
191 vars.ping_win_address = "$check_address$"
194 object CheckCommand "ping4-windows" {
195 import "ping-common-windows"
199 vars.ping_win_address = "$address$"
202 object CheckCommand "ping6-windows" {
203 import "ping-common-windows"
207 vars.ping_win_address = "$address6$"
210 object CheckCommand "procs-windows" {
211 command = [ PluginDir + "/check_procs.exe" ]
215 value = "$procs_win_warn$"
216 description = "Warning threshold"
219 value = "$procs_win_crit$"
220 description = "Critical threshold"
223 value = "$procs_win_user$"
224 description = "Count only procs of this user"
229 object CheckCommand "service-windows" {
230 command = [ PluginDir + "/check_service.exe" ]
234 set_if = "$service_win_warn$"
235 description = "Warn instead of critical when service is not running"
238 value = "$service_win_service$"
240 description = "Service to check"
243 set_if = "$service_win_description$"
244 description = "Use service description instead of name"
249 object CheckCommand "swap-windows" {
250 command = [ PluginDir + "/check_swap.exe" ]
254 value = "$swap_win_warn$"
255 description = "Warning threshold"
258 value = "$swap_win_crit$"
259 description = "Critical threshold"
262 value = "$swap_win_unit$"
263 description = "Unit to display swap in"
266 set_if = "$swap_win_show_used$"
267 description = "Show used swap instead of the free swap"
272 vars.swap_win_unit = "mb"
273 vars.swap_win_warn = "10%"
274 vars.swap_win_crit = "5%"
277 object CheckCommand "update-windows" {
278 command = [ PluginDir + "/check_update.exe" ]
282 set_if = "$update_win_warn$"
283 description = "Warn if there are important updates available"
286 set_if = "$update_win_crit$"
287 description = "Critical if there are important updates that require a reboot"
289 "--possible-reboot" = {
290 set_if = "$update_win_reboot$"
291 description = "Treat 'may need update' as 'definitely needs update'"
298 object CheckCommand "uptime-windows" {
299 command = [ PluginDir + "/check_uptime.exe" ]
303 value = "$uptime_win_warn$"
304 description = "Warning threshold"
307 value = "$uptime_win_crit$"
308 description = "Critical threshold"
311 value = "$uptime_win_unit$"
312 description = "Time unit to use"
316 vars.uptime_win_unit = "s"
319 object CheckCommand "users-windows" {
320 command = [ PluginDir + "/check_users.exe" ]
324 value = "$users_win_warn$"
325 description = "Warning threshold"
328 value = "$users_win_crit$"
329 description = "Critical threshold"