From 4f3ab9b1c8e06719333e004987d1241d2625cbbb Mon Sep 17 00:00:00 2001 From: teclogi <27726999+teclogi@users.noreply.github.com> Date: Mon, 1 Oct 2018 12:02:30 +0200 Subject: [PATCH] Add 'used' parameter to memory-windows ITL command --- doc/10-icinga-template-library.md | 1 + itl/command-plugins-windows.conf | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index fb36af490..2c2d082e6 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -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 diff --git a/itl/command-plugins-windows.conf b/itl/command-plugins-windows.conf index 1e48dc6b0..c0d2b125a 100644 --- a/itl/command-plugins-windows.conf +++ b/itl/command-plugins-windows.conf @@ -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