1 /******************************************************************************
3 * Copyright (C) 2012-2017 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"
47 vars.disk_win_unit = "mb"
51 object CheckCommand "load-windows" {
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 command = [ PluginDir + "/check_memory.exe" ]
71 value = "$memory_win_warn$"
72 description = "Warning Threshold"
75 value = "$memory_win_crit$"
76 description = "Critical Threshold"
79 value = "$memory_win_unit$"
80 description = "Use this unit to display memory"
83 vars.memory_win_unit = "mb"
87 object CheckCommand "network-windows" {
88 command = [ PluginDir + "/check_network.exe" ]
92 value = "$network_win_warn$"
93 description = "Warning threshold"
96 value = "$network_win_crit$"
97 description = "Critical threshold"
100 set_if = "$network_no_isatap$"
101 description = "Don't show ISATAP interfaces in output"
104 vars.network_no_isatap = true
107 object CheckCommand "perfmon-windows" {
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"
133 value = "$perfmon_win_syntax$"
134 description = "Use this instead of the counter name in the perfomance data"
138 vars.performance_win_wait = 1000
139 vars.perfmon_win_type = "double"
143 template CheckCommand "ping-common-windows" {
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"
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 command = [ PluginDir + "/check_procs.exe" ]
202 value = "$procs_win_warn$"
203 description = "Warning threshold"
206 value = "$procs_win_crit$"
207 description = "Critical threshold"
210 value = "$procs_win_user$"
211 description = "Count only procs of this user"
216 object CheckCommand "service-windows" {
217 command = [ PluginDir + "/check_service.exe" ]
221 set_if = "$service_win_warn$"
222 description = "Warn instead of critical when service is not running"
225 value = "$service_win_service$"
227 description = "Service to check"
230 set_if = "$service_win_description$"
231 description = "Use service description instead of name"
236 object CheckCommand "swap-windows" {
237 command = [ PluginDir + "/check_swap.exe" ]
241 value = "$swap_win_warn$"
242 description = "Warning threshold"
245 value = "$swap_win_crit$"
246 description = "Critical threshold"
249 value = "$swap_win_unit$"
250 description = "Unit to display swap in"
254 vars.swap_win_unit = "mb"
257 object CheckCommand "update-windows" {
258 command = [ PluginDir + "/check_update.exe" ]
262 set_if = "$update_win_warn$"
263 description = "Warn if there are important updates available"
266 set_if = "$update_win_crit$"
267 description = "Critical if there are important updates that require a reboot"
269 "--possible-reboot" = {
270 set_if = "$update_win_reboot$"
271 description = "Treat 'may need update' as 'definitely needs update'"
278 object CheckCommand "uptime-windows" {
279 command = [ PluginDir + "/check_uptime.exe" ]
283 value = "$uptime_win_warn$"
284 description = "Warning threshold"
287 value = "$uptime_win_crit$"
288 description = "Critical threshold"
291 value = "$uptime_win_unit$"
292 description = "Time unit to use"
296 vars.uptime_win_unit = "s"
299 object CheckCommand "users-windows" {
300 command = [ PluginDir + "/check_users.exe" ]
304 value = "$users_win_warn$"
305 description = "Warning threshold"
308 value = "$users_win_crit$"
309 description = "Critical threshold"