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"
40 value = "$disk_win_unit$"
41 description = "Use this unit to display disk space"
45 vars.disk_win_unit = "mb"
49 object CheckCommand "load-windows" {
50 import "plugin-check-command"
52 command = [ PluginDir + "/check_load.exe" ]
56 value = "$load_win_warn$"
57 description = "Warning threshold"
60 value = "$load_win_crit$"
61 description = "Critical threshold"
66 object CheckCommand "memory-windows" {
67 import "plugin-check-command"
69 command = [ PluginDir + "/check_memory.exe" ]
73 value = "$memory_win_warn$"
74 description = "Warning Threshold"
77 value = "$memory_win_crit$"
78 description = "Critical Threshold"
81 value = "$memory_win_unit$"
82 description = "Use this unit to display memory"
85 vars.memory_win_unit = "mb"
89 object CheckCommand "network-windows" {
90 import "plugin-check-command"
92 command = [ PluginDir + "/check_network.exe" ]
96 value = "$network_win_warn$"
97 description = "Warning threshold"
100 value = "$network_win_crit$"
101 description = "Critical threshold"
106 object CheckCommand "perfmon-windows" {
107 import "plugin-check-command"
109 command = [ PluginDir + "/check_perfmon.exe" ]
113 value = "$perfmon_win_warn$"
114 description = "Warning threshold"
117 value = "$perfmon_win_crit$"
118 description = "Critical threshold"
121 value = "$perfmon_win_counter$"
122 description = "The Performance Counter string"
125 "--performance-wait" = {
126 value = "$perfmon_win_wait$"
127 description = "Wait time between two counter collections in ms"
129 "--fmt-countertype" = {
130 value = "$perfmon_win_type$"
131 description = "Performance counter type"
135 vars.performance_win_wait = 1000
136 vars.perfmon_win_type = "double"
141 template CheckCommand "ping-common-windows" {
142 import "plugin-check-command"
144 command = [ PluginDir + "/check_ping.exe" ]
148 value = "$ping_win_address$"
150 description = "Address to ping"
153 value = "$ping_win_wrta$,$ping_win_wpl$%"
154 description = "Warning threshold: RTA and package loss seperated by comma"
157 value = "$ping_win_crta$,$ping_win_cpl$%"
158 description = "Warning threshold: RTA and package loss seperated by comma"
161 value = "$ping_win_packets$"
162 description = "Number of packages to send"
165 value = "$ping_win_timeout$"
166 description = "Timeout in ms"
170 vars.ping_win_packets = "5"
171 vars.ping_win_timeout = "1000"
175 object CheckCommand "ping-windows" {
176 import "ping-common-windows"
177 import "ipv4-or-ipv6"
179 vars.ping_win_address = "$check_address$"
182 object CheckCommand "ping4-windows" {
183 import "ping-common-windows"
187 vars.ping_win_address = "$address$"
190 object CheckCommand "ping6-windows" {
191 import "ping-common-windows"
195 vars.ping_win_address = "$address6$"
198 object CheckCommand "procs-windows" {
199 import "plugin-check-command"
201 command = [ PluginDir + "/check_procs.exe" ]
205 value = "$procs_win_warn$"
206 description = "Warning threshold"
209 value = "$procs_win_crit$"
210 description = "Critical threshold"
213 value = "$procs_win_user$"
214 description = "Count only procs of this user"
219 object CheckCommand "service-windows" {
220 import "plugin-check-command"
222 command = [ PluginDir + "/check_service.exe" ]
226 set_if = "$service_win_warn$"
227 description = "Warn instead of critical when service is not running"
230 value = "$service_win_service$"
232 description = "Service to check"
237 object CheckCommand "swap-windows" {
238 import "plugin-check-command"
240 command = [ PluginDir + "/check_swap.exe" ]
244 value = "$swap_win_warn$"
245 description = "Warning threshold"
248 value = "$swap_win_crit$"
249 description = "Critical threshold"
252 value = "$swap_win_unit$"
253 description = "Unit to display swap in"
257 vars.swap_win_unit = "mb"
261 object CheckCommand "update-windows" {
262 import "plugin-check-command"
264 command = [ PluginDir + "/check_update.exe" ]
268 set_if = "$update_win_warn$"
269 description = "Warn if there are important updates available"
272 set_if = "$update_win_crit$"
273 description = "Critical if there are important updates that require a reboot"
275 "--possible-reboot" = {
276 set_if = "$update_win_reboot$"
277 description = "Treat 'may need update' as 'definitely needs update'"
283 object CheckCommand "uptime-windows" {
284 import "plugin-check-command"
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"
307 object CheckCommand "users-windows" {
308 import "plugin-check-command"
310 command = [ PluginDir + "/check_users.exe" ]
314 value = "$users_win_warn$"
315 description = "Warning threshold"
318 value = "$users_win_crit$"
319 description = "Critical threshold"