[ixpmanager] Aggregate graphs break graphing

Barry O'Donovan barry.odonovan at inex.ie
Tue Jun 7 10:15:26 IST 2016


Miku,

can you edit application/controllers/SwitchController.php and, around 
line 235, replace the following:

// can we talk to it by SNMP and discover some basic details?
try
{
   $snmp = new \OSS_SNMP\SNMP( $f->getValue( 'hostname' ), $f->getValue( 
'snmppasswd' ) );
   $vendor = $snmp->getPlatform()->getVendor();
}
catch( \OSS_SNMP\Exception $e )
{
   $this->addMessage( "Could not query {$f->getValue( 'hostname' )} via 
SNMP.
     Consider using the <a href=\"" . OSS_Utils::genUrl( 'switch', 'add' 
) . "\">the manual add method</a>.",
     OSS_Message::ERROR
   );
   break;
}

with just:

$snmp = new \OSS_SNMP\SNMP( $f->getValue( 'hostname' ), $f->getValue( 
'snmppasswd' ) );
$vendor = $snmp->getPlatform()->getVendor();


This will let the error be thrown and shown on screen or in 
IXP_ROOT/var/log/2016/06/20160607.log (or similar).

Can you then try again and send the logs?

  - Barry

Miku, E. Cornelius wrote:
> See replies in line..
>
> --
> Miku
>
> On Mon, Jun 6, 2016 at 7:32 PM, Barry O'Donovan <barry.odonovan at inex.ie
> <mailto:barry.odonovan at inex.ie>> wrote:
>
>
>     What's the output of:
>
>     php -r 'var_dump(function_exists("snmp2_real_walk"));'
>
>
>   bool(true)
>
>
>     Can you query it via SNMP on the command line? Like:
>
>
> ​Yes​
>
>
>     snmpget -c $community -On -v 2c $hostname .
>
>
>     And if so, can you provide the output of:
>
>     snmpget -c $community -On -v 2c $hostname .1.3.6.1.2.1.1.1.0
>
>
>   .1.3.6.1.2.1.1.1.0 = STRING: JetStream 24-Port Gigabit L2 Managed
> Switch with 4 Combo SFP Slots
>
>     snmpget -c $community -On -v 2c $hostname .1.3.6.1.2.1.1.2.0
>
>
>   .1.3.6.1.2.1.1.2.0 = OID: .1.3.6.1.4.1.11863.1.1.3
>
>
> _______________________________________________
> INEX IXP Manager mailing list
> ixpmanager at inex.ie
> https://www.inex.ie/mailman/listinfo/ixpmanager

-- 

Kind regards,
Barry O'Donovan
INEX Operations

https://www.inex.ie/support/
+353 1 531 3339




More information about the ixpmanager mailing list