Merge pull request #5951 from Icinga/itl/snmp_mem

itl: Add command parameters for snmp-memory
This commit is contained in:
Markus Frosch 2018-01-05 17:38:50 +01:00 committed by GitHub
commit 2cbf19b613
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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_cisco | **Optional.** Change OIDs for Cisco switches. Defaults to false.
snmp_is_hp | **Optional.** Change OIDs for HP/Procurve 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_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_timeout | **Optional.** The command timeout in seconds. Defaults to 5 seconds.
### snmp-storage <a id="plugin-check-command-snmp-storage"></a> ### 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$" set_if = "$snmp_is_hp$"
description = "check HP / Procurve memory" 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_warn = "94,50"
vars.snmp_crit = "98,80" vars.snmp_crit = "98,80"
vars.snmp_perf = true vars.snmp_perf = true
vars.snmp_is_cisco = false vars.snmp_is_cisco = false
vars.snmp_memcached = false
vars.snmp_membuffer = false
} }