]> granicus.if.org Git - icinga2/commitdiff
itl: Add command parameters for snmp-memory 5951/head
authorT. Mulyana <nothinux@gmail.com>
Mon, 9 Oct 2017 13:51:25 +0000 (20:51 +0700)
committerMarkus Frosch <markus.frosch@icinga.com>
Fri, 5 Jan 2018 16:31:24 +0000 (17:31 +0100)
Signed-off-by: Markus Frosch <markus.frosch@icinga.com>
doc/10-icinga-template-library.md
itl/command-plugins-manubulon.conf

index 77d7aaba81eeebb013a05d59a20cfebf970189e6..b5d5a3c9614f8868aa2fd86b574038f46e44f055 100644 (file)
@@ -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 <a id="plugin-check-command-snmp-storage"></a>
index d41e84ccc00640661dbb5dd9bf8d0f508c7b1378..910a4ceae3698c9335be5b4de82d52bdfb019e46 100644 (file)
@@ -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
 }