Add snmp_port custom attribute for the SNMP check command definitions

fixes #10423

Signed-off-by: Gunnar Beutner <gunnar@beutner.name>
This commit is contained in:
Dinesh Majrekar 2015-10-21 16:39:24 +01:00 committed by Gunnar Beutner
parent 638d10853a
commit f426f3690b
2 changed files with 2 additions and 0 deletions

View File

@ -726,6 +726,7 @@ Name | Description
snmp_address | **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise.
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_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

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