Fix SNMP errors for Intel 10G cards (82599EB) using ixgbe (interface_dot3stats_get_errorcounters: got data from IFLA_STATS)
Closed, ResolvedPublic

Description

There is already a forum thread here: http://forum.vyos.net/showthread.php?tid=17310

Details

Difficulty level
Easy (less than an hour)
paszczus created this task.Mar 7 2016, 5:38 PM
syncer triaged this task as High priority.
syncer added a subscriber: syncer.Mar 7 2016, 8:43 PM

Can you please transfer original content from forum,
and also if possible, collect and attach logs here
Thanks!

There is a probleme with SNMP when ixgbe on Intel 82599EB are used.
There are many messages in logs like:

Feb 8 06:22:35 myvyosbox snmpd[4586]: IFLA_STATS for eth0
Feb 8 06:22:35 myvyosbox snmpd[4586]: interface_dot3stats_get_errorcounters: got data from IFLA_STATS
Feb 8 06:22:35 myvyosbox snmpd[4586]: IFLA_STATS for eth1
Feb 8 06:22:35 myvyosbox snmpd[4586]: interface_dot3stats_get_errorcounters: got data from IFLA_STATS

After removing those NICs problem does not occurs.
I have this problem with VyOS 1.1.6 version.

I have upgraded VyOs to 1.1.7 yesterday but there is same problem.

syncer added a comment.Mar 9 2016, 9:31 PM

@murmaider thank for pointing to this!

Interesting, we'll look into merging it.

Same issue here on 1.1.7, vmxnet3 interfaces

Any updates with this case?

The diff on the patch https://github.com/vyos/net-snmp/commit/01043209782cb786696e4dc20b9468e97d4f4acd

doesn't seem to remove:

snmp_log(LOG_ERR, "IFLA_STATS for %s\n", name);

and

snmp_log(LOG_NOTICE, "interface_dot3stats_get_errorcounters: got data from IFLA_STATS\n");

paszczus reopened this task as Open.Mar 23 2016, 7:45 AM

I have upgraded to newer version but there is still same error:

Mar 23 08:43:02 er-mrowisko snmpd[23993]: IFLA_STATS for eth5
Mar 23 08:43:02 er-mrowisko snmpd[23993]: interface_dot3stats_get_errorcounters: got data from IFLA_STATS

@paszczus I forgot to remove the old lines... I will build again... will be done shortly.

paszczus added a comment.EditedMar 23 2016, 2:01 PM

Thank you, now there is another error/warning. I don`t know if this is connected with this case or not:

snmpd[25048]: truncating integer value > 32 bits

Seems to be ok, thanks!

murmaider added a comment.EditedMar 23 2016, 2:56 PM

From what I understand from reading up on this, the "truncating" issue occurs when a 32bit value is being returned on a 64bit system.

This only really needs be reported as a info or debug message and not an error message.

I've attached a patch which changes the LOG_ERROR to LOG_DEBUG for these messages.

EDIT: See UnicronNL beat me to it.

Thank you. I have updated snmp on my vyos right now, need to wait an hour or so and i will let you know. Thanks again!

It`s clear now! Thanks again!

syncer added a comment.Feb 2 2017, 1:07 PM

@UnicronNL will this package work for 1.1.7 ?

can someone tell me how to properly apply this patch? thank you!

@syncer Yes, the package is for 1.1.7

@UnicronNL can you please tell me how to install this patch without breaking anything? thank you!

@audreez,

you should download it (wget) an do a sudo dpkg -i of the package.
you can do a dpkg -l to check which snmp packages are installed.
this is the location of the 1.7 packages.
http://dev.packages.vyos.net/tmp/khagen/snmp/

@UnicronNL thank you so much, worked like a charm

In T17#5090, @audreez wrote:

can someone tell me how to properly apply this patch? thank you!

Can you help me apply the patch because I'm having the same problem.

tdale added a subscriber: tdale.EditedSun, Sep 17, 7:11 AM

dpkg -l | grep snmpd and it says 5.7.2+vyos1+helium2 Which is what is already on /tmp/khagen/snmp .. I downloaded the packages and installed them but same issue with timeouts and high load on the system. 82599EB

l# dpkg -l | grep snmpd
ii snmpd 5.7.2+vyos1+helium2 SNMP (Simple Network Management Protocol) agents

These packages appear, but my processing does not change.