]> granicus.if.org Git - icinga2/commitdiff
Add 'used' parameter to memory-windows ITL command 6646/head
authorteclogi <27726999+teclogi@users.noreply.github.com>
Mon, 1 Oct 2018 10:02:30 +0000 (12:02 +0200)
committerMichael Friedrich <michael.friedrich@icinga.com>
Mon, 8 Oct 2018 11:40:26 +0000 (13:40 +0200)
doc/10-icinga-template-library.md
itl/command-plugins-windows.conf

index fb36af490beb64971b7e9a964e0df4623a62d44a..2c2d082e6a7e0af98f154bb2247c2802bc716860 100644 (file)
@@ -1546,6 +1546,7 @@ Name              | Description
 memory\_win\_warn | **Optional**. The warning threshold. Defaults to "10%".
 memory\_win\_crit | **Optional**. The critical threshold. Defaults to "5%".
 memory\_win\_unit | **Optional**. The unit to display the received value in, thresholds are interpreted in this unit. Defaults to "mb" (megabyte), possible values are: b, kb, mb, gb and tb.
+memory\_win\_show\_used | **Optional**. Show used memory instead of the free memory.
 
 
 ### network-windows <a id="windows-plugins-network-windows"></a>
index 1e48dc6b0f9526669908cab8316e50a5521b204c..c0d2b125a5384ed73c7ba60fa6c4f7e7183efd79 100644 (file)
@@ -85,6 +85,10 @@ object CheckCommand "memory-windows" {
                        value = "$memory_win_unit$"
                        description = "Use this unit to display memory"
                }
+               "-U" = {
+                        set_if = "$memory_win_show_used$"
+                        description = "Show used memory instead of the free memory"
+                }
        }
 
        //The default