1 /******************************************************************************
3 * Copyright (C) 2012-2015 Icinga Development Team (http://www.icinga.org) *
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 import "plugin-check-command"
23 command = [ PluginDir + "/check_disk.exe" ]
27 value = "$disk_win_warn$"
28 description = "Warning threshold"
31 value = "$disk_win_crit$"
32 description = "Critical threshold"
35 value = "$disk_win_path$"
36 description = "Optional paths to check"
39 value = "$disk_win_unit$"
40 description = "Use this unit to display disk space"
44 vars.disk_win_unit = "mb"
48 object CheckCommand "load-windows" {
49 import "plugin-check-command"
51 command = [ PluginDir + "/check_load.exe" ]
55 value = "$load_win_warn$"
56 description = "Warning threshold"
59 value = "$load_win_crit$"
60 description = "Critical threshold"
65 object CheckCommand "memory-windows" {
66 import "plugin-check-command"
68 command = [ PluginDir + "/check_memory.exe" ]
72 value = "$memory_win_warn$"
73 description = "Warning Threshold"
76 value = "$memory_win_crit$"
77 description = "Critical Threshold"
80 value = "$memory_win_unit$"
81 description = "Use this unit to display memory"
84 vars.memory_win_unit = "mb"
88 object CheckCommand "network-windows" {
89 import "plugin-check-command"
91 command = [ PluginDir + "/check_network.exe" ]
95 value = "$network_win_warn$"
96 description = "Warning threshold"
99 value = "$network_win_crit$"
100 description = "Critical threshold"
105 object CheckCommand "perfmon-windows" {
106 import "plugin-check-command"
108 command = [ PluginDir + "/check_perfmon.exe" ]
112 value = "$perfmon_win_warn$"
113 description = "Warning threshold"
116 value = "$perfmon_win_crit$"
117 description = "Critical threshold"
120 value = "$perfmon_win_counter$"
121 description = "The Performance Counter string"
124 "--performance-wait" = {
125 value = "$perfmon_win_wait$"
126 description = "Wait time between two counter collections in ms"
128 "--fmt-countertype" = {
129 value = "$perfmon_win_type$"
130 description = "Performance counter type"
134 vars.performance_win_wait = 1000
135 vars.perfmon_win_type = "double"
140 template CheckCommand "ping-common-windows" {
141 import "plugin-check-command"
143 command = [ PluginDir + "/check_ping.exe" ]
147 value = "$ping_win_address$"
149 description = "Address to ping"
152 value = "$ping_win_wrta$,$ping_win_wpl$%"
153 description = "Warning threshold: RTA and package loss seperated by comma"
156 value = "$ping_win_crta$,$ping_win_cpl$%"
157 description = "Warning threshold: RTA and package loss seperated by comma"
160 value = "$ping_win_packets$"
161 description = "Number of packages to send"
164 value = "$ping_win_timeout$"
165 description = "Timeout in ms"
169 vars.ping_win_packets = "5"
170 vars.ping_win_timeout = "1000"
174 object CheckCommand "ping-windows" {
175 import "ping-common-windows"
176 import "ipv4-or-ipv6"
178 vars.ping_win_address = "$check_address$"
181 object CheckCommand "ping4-windows" {
182 import "ping-common-windows"
186 vars.ping_win_address = "$address$"
189 object CheckCommand "ping6-windows" {
190 import "ping-common-windows"
194 vars.ping_win_address = "$address6$"
197 object CheckCommand "procs-windows" {
198 import "plugin-check-command"
200 command = [ PluginDir + "/check_procs.exe" ]
204 value = "$procs_win_warn$"
205 description = "Warning threshold"
208 value = "$procs_win_crit$"
209 description = "Critical threshold"
212 value = "$procs_win_user$"
213 description = "Count only procs of this user"
218 object CheckCommand "service-windows" {
219 import "plugin-check-command"
221 command = [ PluginDir + "/check_service.exe" ]
225 set_if = "$service_win_warn$"
226 description = "Warn instead of critical when service is not running"
229 value = "$service_win_service$"
231 description = "Service to check"
236 object CheckCommand "swap-windows" {
237 import "plugin-check-command"
239 command = [ PluginDir + "/check_swap.exe" ]
243 value = "$swap_win_warn$"
244 description = "Warning threshold"
247 value = "$swap_win_crit$"
248 description = "Critical threshold"
251 value = "$swap_win_unit$"
252 description = "Unit to display swap in"
256 vars.swap_win_unit = "mb"
260 object CheckCommand "update-windows" {
261 import "plugin-check-command"
263 command = [ PluginDir + "/check_update.exe" ]
267 set_if = "$update_win_warn$"
268 description = "Warn if there are important updates available"
271 set_if = "$update_win_crit$"
272 description = "Critical if there are important updates that require a reboot"
274 "--possible-reboot" = {
275 set_if = "$update_win_reboot$"
276 description = "Treat 'may need update' as 'definitely needs update'"
282 object CheckCommand "uptime-windows" {
283 import "plugin-check-command"
285 command = [ PluginDir + "/check_uptime.exe" ]
289 value = "$uptime_win_warn$"
290 description = "Warning threshold"
293 value = "$uptime_win_crit$"
294 description = "Critical threshold"
297 value = "$uptime_win_unit$"
298 description = "Time unit to use"
302 vars.uptime_win_unit = "s"
306 object CheckCommand "users-windows" {
307 import "plugin-check-command"
309 command = [ PluginDir + "/check_users.exe" ]
313 value = "$users_win_warn$"
314 description = "Warning threshold"
317 value = "$users_win_crit$"
318 description = "Critical threshold"