Title: [opsview] [11282] Fixed bug with netscreen plugins using undefined subroutine for community string
Revision
11282
Author
hstevenson
Date
2013-01-29 17:56:23 +0000 (Tue, 29 Jan 2013)

Log Message

Fixed bug with netscreen plugins using undefined subroutine for community string

Modified Paths

Modified: trunk/opsview-core/nagios-plugins/check_snmp_netscreen_activesessions
===================================================================
--- trunk/opsview-core/nagios-plugins/check_snmp_netscreen_activesessions	2013-01-29 17:39:32 UTC (rev 11281)
+++ trunk/opsview-core/nagios-plugins/check_snmp_netscreen_activesessions	2013-01-29 17:56:23 UTC (rev 11282)
@@ -64,7 +64,7 @@
     usage();
 }
 if ($opt_C) {
-    $defaultcommunity = $opt_C;
+    $community = $opt_C;
 
     # print "Using community $opt_C\n";
 }
@@ -88,7 +88,7 @@
 
 # Create the SNMP session
 my ( $s, $e ) = Net::SNMP->session(
-    -community => return_snmpcommunity($hostname),
+    -community => $community,
     -hostname  => $hostname,
     -version   => $version,
     -timeout   => $timeout,

Modified: trunk/opsview-core/nagios-plugins/check_snmp_netscreen_cpu
===================================================================
--- trunk/opsview-core/nagios-plugins/check_snmp_netscreen_cpu	2013-01-29 17:39:32 UTC (rev 11281)
+++ trunk/opsview-core/nagios-plugins/check_snmp_netscreen_cpu	2013-01-29 17:56:23 UTC (rev 11282)
@@ -64,7 +64,7 @@
     usage();
 }
 if ($opt_C) {
-    $defaultcommunity = $opt_C;
+    $community = $opt_C;
 
     # print "Using community $opt_C\n";
 }
@@ -88,7 +88,7 @@
 
 # Create the SNMP session
 my ( $s, $e ) = Net::SNMP->session(
-    -community => return_snmpcommunity($hostname),
+    -community => $community,
     -hostname  => $hostname,
     -version   => $version,
     -timeout   => $timeout,

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

Reply via email to