Add 'used' parameter to memory-windows ITL command

This commit is contained in:
teclogi 2018-10-01 12:02:30 +02:00 committed by Michael Friedrich
parent f0411150bb
commit 4f3ab9b1c8
2 changed files with 5 additions and 0 deletions

View 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>

View 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