]> 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 700f9c790a6be9887e7b19fc38338a33cea279ee..22ab623b98891b74220fff547788a3a89e2a0e35 100644 (file)
@@ -1,21 +1,4 @@
-/******************************************************************************
- * Icinga 2                                                                   *
- * Copyright (C) 2012-2018 Icinga Development Team (https://www.icinga.com/)  *
- *                                                                            *
- * 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" {
        command = [ PluginDir + "/check_disk.exe" ]
@@ -47,8 +30,11 @@ object CheckCommand "disk-windows" {
                        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" {
@@ -82,9 +68,16 @@ 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" {
@@ -229,7 +222,7 @@ object CheckCommand "service-windows" {
                        required = true
                        description = "Service to check"
                }
-               "-d" = {
+               "--description" = {
                        set_if = "$service_win_description$"
                        description = "Use service description instead of name"
                }
@@ -252,9 +245,16 @@ 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"
+       vars.swap_win_warn = "10%"
+       vars.swap_win_crit = "5%"
 }
 
 object CheckCommand "update-windows" {
@@ -262,17 +262,21 @@ object CheckCommand "update-windows" {
 
        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