]> granicus.if.org Git - icinga2/blobdiff - itl/command-plugins-windows.conf
Merge pull request #7210 from Icinga/bugfix/boost-asio-deprecated
[icinga2] / itl / command-plugins-windows.conf
index 477628934f99e3fd4a58f50a81e6e8af8c79c4e0..22ab623b98891b74220fff547788a3a89e2a0e35 100644 (file)
@@ -1,27 +1,8 @@
-/******************************************************************************
- * Icinga 2                                                                   *
- * Copyright (C) 2012-2015 Icinga Development Team (http://www.icinga.org)    *
- *                                                                            *
- * This program is free software; you can redistribute it and/or              *
- * modify it under the terms of the GNU General Public License                *
- * as published by the Free Software Foundation; either version 2             *
- * of the License, or (at your option) any later version.                     *
- *                                                                            *
- * This program is distributed in the hope that it will be useful,            *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the              *
- * GNU General Public License for more details.                               *
- *                                                                            *
- * You should have received a copy of the GNU General Public License          *
- * along with this program; if not, write to the Free Software Foundation     *
- * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.             *
- ******************************************************************************/
+/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
 
 object CheckCommand "disk-windows" {
-       import "plugin-check-command"
-       
        command = [ PluginDir + "/check_disk.exe" ]
-       
+
        arguments = {
                "-w" = {
                        value = "$disk_win_warn$"
@@ -40,17 +21,25 @@ object CheckCommand "disk-windows" {
                        value = "$disk_win_unit$"
                        description = "Use this unit to display disk space"
                }
+               "-x" = {
+                       value = "$disk_win_exclude$"
+                       description = "Exclude these drives from check"
+               }
+               "-U" = {
+                       set_if = "$disk_win_show_used$"
+                       description = "Work with used instead of free space"
+               }
        }
-       
-       vars.disk_win_unit = "mb"
+
        //The default
+       vars.disk_win_unit = "mb"
+       vars.disk_win_warn = "20%"
+       vars.disk_win_crit = "10%"
 }
-       
+
 object CheckCommand "load-windows" {
-       import "plugin-check-command"
-       
        command = [ PluginDir + "/check_load.exe" ]
-       
+
        arguments = {
                "-w" = {
                        value = "$load_win_warn$"
@@ -64,10 +53,8 @@ object CheckCommand "load-windows" {
 }
 
 object CheckCommand "memory-windows" {
-       import "plugin-check-command"
-       
        command = [ PluginDir + "/check_memory.exe" ]
-       
+
        arguments = {
                "-w" = {
                        value = "$memory_win_warn$"
@@ -81,16 +68,21 @@ object CheckCommand "memory-windows" {
                        value = "$memory_win_unit$"
                        description = "Use this unit to display memory"
                }
+               "-U" = {
+                        set_if = "$memory_win_show_used$"
+                        description = "Show used memory instead of the free memory"
+                }
        }
-       vars.memory_win_unit = "mb"
+
        //The default
+       vars.memory_win_unit = "mb"
+       vars.memory_win_warn = "10%"
+       vars.memory_win_crit = "5%"
 }
 
 object CheckCommand "network-windows" {
-       import "plugin-check-command"
-       
        command = [ PluginDir + "/check_network.exe" ]
-       
+
        arguments = {
                "-w" = {
                        value = "$network_win_warn$"
@@ -100,14 +92,17 @@ object CheckCommand "network-windows" {
                        value = "$network_win_crit$"
                        description = "Critical threshold"
                }
+               "-n" = {
+                       set_if = "$network_no_isatap$"
+                       description = "Don't show ISATAP interfaces in output"
+               }
        }
+       vars.network_no_isatap = true
 }
 
 object CheckCommand "perfmon-windows" {
-       import "plugin-check-command"
-       
        command = [ PluginDir + "/check_perfmon.exe" ]
-       
+
        arguments = {
                "-w" = {
                        value = "$perfmon_win_warn$"
@@ -130,17 +125,18 @@ object CheckCommand "perfmon-windows" {
                        value = "$perfmon_win_type$"
                        description = "Performance counter type"
                }
+               "--perf-syntax" = {
+                       value = "$perfmon_win_syntax$"
+                       description = "Use this instead of the counter name in the perfomance data"
+               }
        }
-       
+
        vars.performance_win_wait = 1000
        vars.perfmon_win_type = "double"
-       //The default values
 }
 
 
 template CheckCommand "ping-common-windows" {
-       import "plugin-check-command"
-
        command = [ PluginDir + "/check_ping.exe" ]
 
        arguments = {
@@ -166,10 +162,9 @@ template CheckCommand "ping-common-windows" {
                        description = "Timeout in ms"
                }
        }
-       
+
        vars.ping_win_packets = "5"
        vars.ping_win_timeout = "1000"
-       //The default values
 }
 
 object CheckCommand "ping-windows" {
@@ -196,10 +191,8 @@ object CheckCommand "ping6-windows" {
 }
 
 object CheckCommand "procs-windows" {
-       import "plugin-check-command"
-       
        command = [ PluginDir + "/check_procs.exe" ]
-       
+
        arguments = {
                "-w" = {
                        value = "$procs_win_warn$"
@@ -217,10 +210,8 @@ object CheckCommand "procs-windows" {
 }
 
 object CheckCommand "service-windows" {
-       import "plugin-check-command"
-       
        command = [ PluginDir + "/check_service.exe" ]
-       
+
        arguments = {
                "-w" = {
                        set_if = "$service_win_warn$"
@@ -231,14 +222,16 @@ object CheckCommand "service-windows" {
                        required = true
                        description = "Service to check"
                }
+               "--description" = {
+                       set_if = "$service_win_description$"
+                       description = "Use service description instead of name"
+               }
        }
 }
 
 object CheckCommand "swap-windows" {
-       import "plugin-check-command"
-       
        command = [ PluginDir + "/check_swap.exe" ]
-       
+
        arguments = {
                "-w" = {
                        value = "$swap_win_warn$"
@@ -252,40 +245,46 @@ object CheckCommand "swap-windows" {
                        value = "$swap_win_unit$"
                        description = "Unit to display swap in"
                }
+               "-U" = {
+                       set_if = "$swap_win_show_used$"
+                       description = "Show used swap instead of the free swap"
+               }
        }
-       
+
+       // Default
        vars.swap_win_unit = "mb"
-       //The default
+       vars.swap_win_warn = "10%"
+       vars.swap_win_crit = "5%"
 }
 
 object CheckCommand "update-windows" {
-       import "plugin-check-command"
-       
        command = [ PluginDir + "/check_update.exe" ]
-       
+
        arguments = {
                "-w" = {
-                       set_if = "$update_win_warn$"
-                       description = "Warn if there are important updates available"
+                       value = "$update_win_warn$"
+                       description = "Number of updates to trigger a warning"
                }
                "-c" = {
-                       set_if = "$update_win_crit$"
-                       description = "Critical if there are important updates that require a reboot"
+                       value = "$update_win_crit$"
+                       description = "Number of updates to trigger a critical"
                }
                "--possible-reboot" = {
                        set_if = "$update_win_reboot$"
                        description = "Treat 'may need update' as 'definitely needs update'"
                }
+               "--no-reboot-critical" = {
+                       set_if = "$ignore_reboot$"
+                       description = "Do not automatically return critical if an update requiring reboot is present."
+               }
        }
 
        timeout = 5m
 }
 
 object CheckCommand "uptime-windows" {
-       import "plugin-check-command"
-       
        command = [ PluginDir + "/check_uptime.exe" ]
-       
+
        arguments = {
                "-w" = {
                        value = "$uptime_win_warn$"
@@ -300,16 +299,13 @@ object CheckCommand "uptime-windows" {
                        description = "Time unit to use"
                }
        }
-       
+
        vars.uptime_win_unit = "s"
-       //The default
 }
 
 object CheckCommand "users-windows" {
-       import "plugin-check-command"
-       
        command = [ PluginDir + "/check_users.exe" ]
-       
+
        arguments = {
                "-w" = {
                        value = "$users_win_warn$"