[icinga-checkins] icinga.org: icinga2/master: Add the "-e" parameter for the SNMP check command

git at icinga.org git at icinga.org
Fri Aug 5 14:51:20 CEST 2016


Module: icinga2
Branch: master
Commit: 52f83ca7e611f311a223915bbca5b52124e57fa9
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=52f83ca7e611f311a223915bbca5b52124e57fa9

Author: Mirko Nardin <mirko.nardin at gmx.net>
Date:   Fri Aug  5 09:17:41 2016 +0200

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

fixes #11359

Signed-off-by: Gunnar Beutner <gunnar.beutner at netways.de>

---

 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 bad493b..cc0e519 100644
--- a/doc/7-icinga-template-library.md
+++ b/doc/7-icinga-template-library.md
@@ -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
diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf
index 9d703ae..b69ff1b 100644
--- a/itl/command-plugins.conf
+++ b/itl/command-plugins.conf
@@ -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"



More information about the icinga-checkins mailing list