Title: [opsview] [12792] Expect a different format when calling Opsview::Utils::SnmpInterfaces->get_interface_information, as per commit 12444.
Revision
12792
Author
pknight
Date
2013-07-03 16:12:11 +0100 (Wed, 03 Jul 2013)

Log Message

Expect a different format when calling Opsview::Utils::SnmpInterfaces->get_interface_information, as per commit 12444.

Modified Paths

Modified: trunk/opsview-core/bin/query_host
===================================================================
--- trunk/opsview-core/bin/query_host	2013-07-03 14:01:51 UTC (rev 12791)
+++ trunk/opsview-core/bin/query_host	2013-07-03 15:12:11 UTC (rev 12792)
@@ -219,15 +219,15 @@
 my $numInterfaces = $res->{ $ifTable . ".1.0" };
 print output( "Number of interfaces", $numInterfaces ) unless $xml;
 
-my $interfaces = Opsview::Utils::SnmpInterfaces->get_interface_information(
+$res = Opsview::Utils::SnmpInterfaces->get_interface_information(
     $s,
     {
         tidy_ifdescr_level => $tidy_ifdescr_level,
         ( $debug ? ( extra_stats => 1 ) : 0 ),
     }
 );
-
 undef $s;
+my $interfaces = $res->{interfaces};
 
 # Make nicer output information
 foreach my $i ( keys %$interfaces ) {
@@ -300,7 +300,7 @@
 
 sub usage {
     print "
-$0 -h 
+$0 -h
 $0 -H <host> -C <community string> [-t] [-q] [-D]
 
 Where:

_______________________________________________
Opsview-checkins mailing list
Opsview-checkins@lists.opsview.org
http://lists.opsview.org/lists/listinfo/opsview-checkins

Reply via email to