mirror of https://github.com/Icinga/icinga2.git
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:
parent
638d10853a
commit
f426f3690b
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue