]> granicus.if.org Git - icinga2/commitdiff
Added exclude parameter in disk-windows CheckCommand
authorEduard Güldner <eduard.gueldner@gmail.com>
Thu, 10 Dec 2015 17:01:01 +0000 (18:01 +0100)
committerJean Flach <jean-marcel.flach@netways.de>
Mon, 18 Jan 2016 09:27:54 +0000 (10:27 +0100)
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 <jean-marcel.flach@netways.de>
fixes #10787

AUTHORS
doc/7-icinga-template-library.md
itl/command-plugins-windows.conf

diff --git a/AUTHORS b/AUTHORS
index 74a4d612be23198a4aa9186fff9dc0251d5a32fd..a648d5382ca3b62a3a138ceaaca1065b7e22d697 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -20,7 +20,9 @@ David Beck <techiscool@gmail.com>
 Dinesh Majrekar <dinesh.majrekar@serverchoice.com>
 Dirk Goetz <dirk.goetz@netways.de>
 Dolf Schimmel <dolf@transip.nl>
+Eduard Güldner <eduard.gueldner@gmail.com>
 Edvin Seferovic <edvin@seferovic.net>
+Élie Bouttier <elie@bouttier.eu>
 Eric Lippmann <eric.lippmann@netways.de>
 Ferdi Gueran <ferdi.gueran@nextevolution.de>
 Gaël Beaudoin <gaboo@gaboo.org>
@@ -35,12 +37,12 @@ Jan Andres <jan.andres@berenberg.de>
 Jan Wagner <waja@cyconet.org>
 Jason Young <jyoung15@gmail.com>
 Jean-Marcel Flach <jean-marcel.flach@netways.de>
+Jérôme Drouet <jerome.drouet@gmail.com>
 Jesse Morgan <morgajel@gmail.com>
 Jo Goossens <jo.goossens@hosted-power.com>
 Johannes Meyer <johannes.meyer@netways.de>
 Jonas Meurer <jonas@freesources.org>
 Joseph L. Casale <jcasale@activenetwerx.com>
-Jérôme Drouet <jerome.drouet@gmail.com>
 Lars Engels <lars.engels@0x20.net>
 Lee Clemens <java@leeclemens.net>
 Lennart Betz <lennart.betz@netways.de>
@@ -52,6 +54,7 @@ Marius Sturm <marius@torch.sh>
 Markus Frosch <markus@lazyfrosch.de>
 Markus Waldmüller <markus.waldmueller@netways.de>
 Martin Stiborsky <martin.stiborsky@gmail.com>
+Mathieu Lutfy <mathieu@bidon.ca>
 Matthaus Owens <matthaus@puppetlabs.com>
 Max Zhang <zhenzhan@tibco.com>
 Mhd Sulhan <ms@kilabit.info>
@@ -59,12 +62,14 @@ Michael Friedrich <michael.friedrich@netways.de>
 Michael Kraus <michael.kraus@consol.de>
 Pall Sigurdsson <palli-github@minor.is>
 Paul Richards <paul@minimoo.org>
+Per von Zweigbergk <pvz@itassistans.se>
 Petr Ruzicka <petr.ruzicka@gmail.com>
 Phil Hutchinson <phil@volumedia.co.uk>
 Ralph Breier <ralph.breier@roedl.com>
 Reto Zeder <reto.zeder@arcade.ch>
 Ricardo Bartels <ricardo@bitchbrothers.com>
 Sam Kottler <shk@linux.com>
+Sebastian Brückner <mail@invlid.com>
 Sebastian Chrostek <sebastian@chrostek.net>
 Simon Ruderich <simon@ruderich.org>
 Siyalrach Anton Thomas <sat@level8.dk>
@@ -78,4 +83,3 @@ Valentin Hoebel <valentin@xenuser.org>
 Wolfgang Nieder <wnd@gmx.net>
 Yohan Jarosz <yohanjarosz@yahoo.fr>
 Zoltan Nagy <abesto@abesto.net>
-Élie Bouttier <elie@bouttier.eu>
index c01047c2fa040a8ec05a51c2ca255014320c4793..919b4130990ae27aa477da32d0ee6a5bf64fd694 100644 (file)
@@ -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.
 
 ### <a id="windows-plugins-load-windows"></a> load-windows
 
index f3ef5f0c4adc7b0e3a1e26623a7519e3fdc8a172..3fb9aa3cd4c834673424eca70b4d89be1d95f71f 100644 (file)
@@ -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"