Add the "-e" parameter for the SNMP check command

fixes #11359

Signed-off-by: Gunnar Beutner <gunnar.beutner@netways.de>
This commit is contained in:
Mirko Nardin 2016-08-05 09:17:41 +02:00 committed by Gunnar Beutner
parent 46f8c7eb59
commit 52f83ca7e6
2 changed files with 2 additions and 0 deletions

View File

@ -994,6 +994,7 @@ snmp_address | **Optional.** The host's address. Defaults to "$address$"
snmp_oid | **Required.** The SNMP OID.
snmp_community | **Optional.** The SNMP community. Defaults to "public".
snmp_port | **Optional.** The SNMP port. Defaults to "161".
snmp_retries | **Optional.** Number of retries to be used in the SNMP requests.
snmp_warn | **Optional.** The warning threshold.
snmp_crit | **Optional.** The critical threshold.
snmp_string | **Optional.** Return OK state if the string matches exactly with the output value

View File

@ -1310,6 +1310,7 @@ object CheckCommand "snmp" {
"-u" = "$snmp_units$"
"-t" = "$snmp_timeout$"
"-p" = "$snmp_port$"
"-e" = "$snmp_retries$"
"--invert-search" = {
set_if = "$snmp_invert_search$"
description = "Invert search result and return CRITICAL if found"