Page MenuHomeVyOS Platform

SNMPD show logs systemstats_linux: unexpected header length
Open, NormalPublicBUG

Description

SNMPD show logs systemstats_linux: unexpected header length

To reproduce:

set service snmp community public client '127.0.0.1'

Check logs

May 01 15:03:58 f3 systemd[1]: Stopping snmpd.service - Simple Network Management Protocol (SNMP) Daemon....
May 01 15:03:58 f3 systemd[1]: snmpd.service: Deactivated successfully.
May 01 15:03:58 f3 systemd[1]: Stopped snmpd.service - Simple Network Management Protocol (SNMP) Daemon..
May 01 15:03:58 f3 systemd[1]: Starting snmpd.service - Simple Network Management Protocol (SNMP) Daemon....
May 01 15:03:58 f3 snmpd[88537]: systemstats_linux: unexpected header length in /proc/net/snmp. 237 != 224
May 01 15:03:58 f3 snmpd[88537]: systemstats_linux: unexpected header length in /proc/net/snmp. 237 != 224
May 01 15:03:58 f3 snmpd[88537]: systemstats_linux: unexpected header length in /proc/net/snmp. 237 != 224
May 01 15:03:58 f3 systemd[1]: Started snmpd.service - Simple Network Management Protocol (SNMP) Daemon..

Kernel version:

vyos@r4# uname -r
6.6.29-amd64-vyos
[edit]
vyos@r4#

But the service looks working
Possible fix in https://github.com/net-snmp/net-snmp/pull/785

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.5-rolling-202405010020
Why the issue appeared?
Issues in third-party code
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)