Title: [opsview] [9549] Allow check_snmp_perfstats to use SNMP v2c
Revision
9549
Author
dferguson
Date
2012-07-12 15:02:18 +0100 (Thu, 12 Jul 2012)

Log Message

Allow check_snmp_perfstats to use SNMP v2c

Thanks to Alan Wijntje for the patch

Modified Paths

Modified: trunk/CHANGES
===================================================================
--- trunk/CHANGES	2012-07-12 13:49:44 UTC (rev 9548)
+++ trunk/CHANGES	2012-07-12 14:02:18 UTC (rev 9549)
@@ -33,6 +33,7 @@
     Fixed audible alerts in events view
     Fixed net-snmp-perl requirement on RedHat
     Ensure nagcmd group is added to Apache user
+    Allow check_snmp_perfstats to use SNMP v2c
 
 3.201205XX 22nd May 2012
     NOTICES:

Modified: trunk/opsview-core/nagios-plugins/check_snmp_perfstats
===================================================================
--- trunk/opsview-core/nagios-plugins/check_snmp_perfstats	2012-07-12 13:49:44 UTC (rev 9548)
+++ trunk/opsview-core/nagios-plugins/check_snmp_perfstats	2012-07-12 14:02:18 UTC (rev 9549)
@@ -61,7 +61,7 @@
     usage();
 }
 
-getopts( "hH:C:w:c:p:" );
+getopts( "hH:C:w:c:p:v:" );
 if ($opt_h) {
     usage();
     exit(0);
@@ -87,6 +87,9 @@
 if ($opt_p) {
     $port = $opt_p;
 }
+if ($opt_v) {
+    $version = $opt_v;
+}
 
 # Create the SNMP session
 my ( $s, $e ) = Net::SNMP->session(

_______________________________________________
Opsview-checkins mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-checkins

Reply via email to