From: Michael Insel Date: Sat, 6 Oct 2018 18:26:15 +0000 (+0200) Subject: Update ITL for windows check_swap 'used' feature X-Git-Tag: v2.10.0~11^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ad1ab4239349deef3f566de71a372aab9e44461f;p=icinga2 Update ITL for windows check_swap 'used' feature --- 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