diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md index 06a7b18d8..ffdb14f98 100644 --- a/doc/7-icinga-template-library.md +++ b/doc/7-icinga-template-library.md @@ -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 diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index 22a64f5c0..4ebd338c3 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -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"