]> granicus.if.org Git - icinga2/commitdiff
Update ITL for windows check_swap 'used' feature 6651/head
authorMichael Insel <michael@insel.email>
Sat, 6 Oct 2018 18:26:15 +0000 (20:26 +0200)
committerMichael Insel <michael@insel.email>
Mon, 8 Oct 2018 19:17:03 +0000 (21:17 +0200)
doc/10-icinga-template-library.md
itl/command-plugins-windows.conf

index fb36af490beb64971b7e9a964e0df4623a62d44a..f6ebe4ac487483e0eac746149a7a7b6084518015 100644 (file)
@@ -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 <a id="windows-plugins-update-windows"></a>
 
index 1e48dc6b0f9526669908cab8316e50a5521b204c..3ba7c98f7b82bfc8da3efaa943865de4e3c12305 100644 (file)
@@ -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