From: Eduard Güldner Date: Thu, 10 Dec 2015 17:01:01 +0000 (+0100) Subject: Added exclude parameter in disk-windows CheckCommand X-Git-Tag: v2.5.0~617 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09cb793402aaa1034abdbbdd30c46291e3ace3e1;p=icinga2 Added exclude parameter in disk-windows CheckCommand Added missing command parameter in definition for disk-windows CheckCommand in order to be able to exclude certain drives from being checked. This parameter was addressed in feature #9201 Further details can be found in feature #10787 Signed-off-by: Jean Flach fixes #10787 --- diff --git a/AUTHORS b/AUTHORS index 74a4d612b..a648d5382 100644 --- a/AUTHORS +++ b/AUTHORS @@ -20,7 +20,9 @@ David Beck Dinesh Majrekar Dirk Goetz Dolf Schimmel +Eduard Güldner Edvin Seferovic +Élie Bouttier Eric Lippmann Ferdi Gueran Gaël Beaudoin @@ -35,12 +37,12 @@ Jan Andres Jan Wagner Jason Young Jean-Marcel Flach +Jérôme Drouet Jesse Morgan Jo Goossens Johannes Meyer Jonas Meurer Joseph L. Casale -Jérôme Drouet Lars Engels Lee Clemens Lennart Betz @@ -52,6 +54,7 @@ Marius Sturm Markus Frosch Markus Waldmüller Martin Stiborsky +Mathieu Lutfy Matthaus Owens Max Zhang Mhd Sulhan @@ -59,12 +62,14 @@ Michael Friedrich Michael Kraus Pall Sigurdsson Paul Richards +Per von Zweigbergk Petr Ruzicka Phil Hutchinson Ralph Breier Reto Zeder Ricardo Bartels Sam Kottler +Sebastian Brückner Sebastian Chrostek Simon Ruderich Siyalrach Anton Thomas @@ -78,4 +83,3 @@ Valentin Hoebel Wolfgang Nieder Yohan Jarosz Zoltan Nagy -Élie Bouttier diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md index c01047c2f..919b41309 100644 --- a/doc/7-icinga-template-library.md +++ b/doc/7-icinga-template-library.md @@ -1170,13 +1170,13 @@ Aggregates the free disk space of all volumes and mount points it can find, or t Custom attributes: -Name | Description -:---------------|:------------ -disk\_win\_warn | **Optional**. The warning threshold. -disk\_win\_crit | **Optional**. The critical threshold. -disk\_win\_path | **Optional**. Check only these paths, default checks all. -disk\_win\_unit | **Optional**. Use this unit to display disk space, thresholds are interpreted in this unit. Defaults to "mb", possible values are: b, kb, mb, gb and tb. - +Name | Description +:-------------------|:------------ +disk\_win\_warn | **Optional**. The warning threshold. +disk\_win\_crit | **Optional**. The critical threshold. +disk\_win\_path | **Optional**. Check only these paths, default checks all. +disk\_win\_unit | **Optional**. Use this unit to display disk space, thresholds are interpreted in this unit. Defaults to "mb", possible values are: b, kb, mb, gb and tb. +disk\_win\_exclude | **Optional**. Exclude these drives from check. ### load-windows diff --git a/itl/command-plugins-windows.conf b/itl/command-plugins-windows.conf index f3ef5f0c4..3fb9aa3cd 100644 --- a/itl/command-plugins-windows.conf +++ b/itl/command-plugins-windows.conf @@ -40,6 +40,10 @@ 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" + } } vars.disk_win_unit = "mb"