From f426f3690b8ea6111313dbb544c3c221ee00b341 Mon Sep 17 00:00:00 2001 From: Dinesh Majrekar Date: Wed, 21 Oct 2015 16:39:24 +0100 Subject: [PATCH] Add snmp_port custom attribute for the SNMP check command definitions fixes #10423 Signed-off-by: Gunnar Beutner --- doc/7-icinga-template-library.md | 1 + itl/command-plugins.conf | 1 + 2 files changed, 2 insertions(+) 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"