From ad1ab4239349deef3f566de71a372aab9e44461f Mon Sep 17 00:00:00 2001 From: Michael Insel Date: Sat, 6 Oct 2018 20:26:15 +0200 Subject: [PATCH] Update ITL for windows check_swap 'used' feature --- doc/10-icinga-template-library.md | 12 ++++++------ itl/command-plugins-windows.conf | 4 ++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index fb36af490..f6ebe4ac4 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -1632,12 +1632,12 @@ The data collection is instant. Custom attributes: -Name | Description -:---------------|:------------ -swap\_win\_warn | **Optional**. The warning threshold. Defaults to "10%". -swap\_win\_crit | **Optional**. The critical threshold. Defaults to "5%". -swap\_win\_unit | **Optional**. The unit to display the received value in, thresholds are interpreted in this unit. Defaults to "mb" (megabyte). - +Name | Description +:--------------- | :------------ +swap\_win\_warn | **Optional**. The warning threshold. Defaults to "10%". +swap\_win\_crit | **Optional**. The critical threshold. Defaults to "5%". +swap\_win\_unit | **Optional**. The unit to display the received value in, thresholds are interpreted in this unit. Defaults to "mb" (megabyte). +swap\_win\_show\_used | **Optional**. Show used swap instead of the free swap. ### update-windows diff --git a/itl/command-plugins-windows.conf b/itl/command-plugins-windows.conf index 1e48dc6b0..3ba7c98f7 100644 --- a/itl/command-plugins-windows.conf +++ b/itl/command-plugins-windows.conf @@ -258,6 +258,10 @@ 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 -- 2.50.1