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

git at icinga.org git at icinga.org
Fri Oct 14 15:54:39 CEST 2016


Module: icinga2
Branch: feature/check_nscp-12874
Commit: 8e0ed5e24fd7fbb2f7be467e894c58400f94a26f
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=8e0ed5e24fd7fbb2f7be467e894c58400f94a26f

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 67a5090..cf2adca 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