[icinga-checkins] icinga.org: icinga2/master: Add missing '-m' (snmpv3_miblist) and -p ( snmpv3_port) options

git at icinga.org git at icinga.org
Tue Oct 11 12:43:54 CEST 2016


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

Author: Peter Eckel <pe-icinga2 at hindenburgring.com>
Date:   Tue Oct  4 09:53:12 2016 +0200

Add missing '-m' (snmpv3_miblist) and -p (snmpv3_port) options

The options for setting an explicit MIB list and for specifying the target
port that are present for the snmp CheckCommand object that were missing from
the snmpv3 CheckCommand object are added with this patch.

fixes #12838

Signed-off-by: Gunnar Beutner <gunnar.beutner at icinga.com>

---

 itl/command-plugins.conf |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf
index 6b8db0f..8816c0c 100644
--- a/itl/command-plugins.conf
+++ b/itl/command-plugins.conf
@@ -1343,6 +1343,10 @@ object CheckCommand "snmpv3" {
 				value = "$snmpv3_address$"
 				description = "Host name, IP Address, or unix socket (must be an absolute path)"
 		}
+		"-p" = {
+				value = "$snmpv3_port$"
+				description = "Port number"
+		}
 		"-n" = {
 				set_if = "$snmpv3_getnext$"
 				description = "Use SNMP GETNEXT instead of SNMP GET"
@@ -1407,6 +1411,10 @@ object CheckCommand "snmpv3" {
 				value = "$snmpv3_label$"
 				description = "Prefix label for output from plugin"
 		}
+		"-m" = {
+			value = "$snmpv3_miblist$"
+			description = "List of SNMP MIBs for translating OIDs between numeric and textual representation"
+		}
 		"-u" = "$snmpv3_units$"
 		"--rate-multiplier" = "$snmpv3_rate_multiplier$"
 		"--rate" = {



More information about the icinga-checkins mailing list