[Bug 851625] Re: snmp__if plugin does not work if server only supports 32 bit counters

2012-03-01 Thread Stefan Leitner
There is a second bug, if the snmp server doesn't support the alias name
entry (1.3.6.1.2.1.31.1.1.1.18.x) of the SNMPv2 , the function returns
noSuchObject

# from line 162
my $alias = $session-get_single($ifEntryAlias) ||
$session-get_single($ifEntryDescr) ||
Interface $iface;


# a possible fix:
my $alias = $session-get_single($ifEntryAlias);
if ($alias eq 'noSuchObject'){
$alias = $session-get_single($ifEntryDescr) || 
Interface $iface;
}

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to munin in Ubuntu.
https://bugs.launchpad.net/bugs/851625

Title:
  snmp__if plugin does not work if server only supports 32 bit counters

To manage notifications about this bug go to:
https://bugs.launchpad.net/munin/+bug/851625/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 851625] Re: snmp__if plugin does not work if server only supports 32 bit counters

2012-03-01 Thread Stefan Leitner
I have to correct myself, the fix should be:

my $alias = $session-get_single($ifEntryAlias);
if ((!(defined ($alias))) or ($alias eq 'noSuchObject')){
$alias = $session-get_single($ifEntryDescr) || Interface $iface;
}

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to munin in Ubuntu.
https://bugs.launchpad.net/bugs/851625

Title:
  snmp__if plugin does not work if server only supports 32 bit counters

To manage notifications about this bug go to:
https://bugs.launchpad.net/munin/+bug/851625/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs