From de3115590d029f3eb2e0adf95bd7788bab664dca Mon Sep 17 00:00:00 2001 From: "T. Mulyana" Date: Mon, 9 Oct 2017 20:51:25 +0700 Subject: [PATCH] itl: Add command parameters for snmp-memory Signed-off-by: Markus Frosch --- doc/10-icinga-template-library.md | 2 ++ itl/command-plugins-manubulon.conf | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/doc/10-icinga-template-library.md b/doc/10-icinga-template-library.md index 77d7aaba8..b5d5a3c96 100644 --- a/doc/10-icinga-template-library.md +++ b/doc/10-icinga-template-library.md @@ -1996,6 +1996,8 @@ snmp_crit | **Optional.** The critical threshold. snmp_is_cisco | **Optional.** Change OIDs for Cisco switches. Defaults to false. snmp_is_hp | **Optional.** Change OIDs for HP/Procurve switches. Defaults to false. snmp_perf | **Optional.** Enable perfdata values. Defaults to true. +snmp_memcached | **Optional.** Include cached memory in used memory, Defaults to false. +snmp_membuffer | **Optional.** Exclude buffered memory in used memory, Defaults to false. snmp_timeout | **Optional.** The command timeout in seconds. Defaults to 5 seconds. ### snmp-storage diff --git a/itl/command-plugins-manubulon.conf b/itl/command-plugins-manubulon.conf index d41e84ccc..910a4ceae 100644 --- a/itl/command-plugins-manubulon.conf +++ b/itl/command-plugins-manubulon.conf @@ -174,12 +174,22 @@ object CheckCommand "snmp-memory" { set_if = "$snmp_is_hp$" description = "check HP / Procurve memory" } + "-m" = { + set_if = "$snmp_memcached$" + description = "Include cached memory in used memory" + } + "-b" = { + set_if = "$snmp_membuffer$" + description = "Exclude buffered memory in used memory" + } } vars.snmp_warn = "94,50" vars.snmp_crit = "98,80" vars.snmp_perf = true vars.snmp_is_cisco = false + vars.snmp_memcached = false + vars.snmp_membuffer = false }