itl: Add command parameters for snmp-memory

Signed-off-by: Markus Frosch <markus.frosch@icinga.com>
This commit is contained in:
T. Mulyana 2017-10-09 20:51:25 +07:00 committed by Markus Frosch
parent ecc04807dd
commit de3115590d
2 changed files with 12 additions and 0 deletions

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

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