Page MenuHomeVyOS Platform

Difficulty monitoring VyOS through SNMP
Closed, WontfixPublicBUG

Description

Hello

I am a monitoring specialist.
I have difficulty monitoring VyOS through SNMP.
My interface description disappears (

I am creating a new interface, adding this interface to monitoring.
First, I can see the name of the interface and the description of the interface.
But time passes and I can no longer see the description.
Instead of a description, I see only the name.

Here is my example.
The vtun106 and vtun109 interfaces have a description of KAZAN and KAZAN2.
But SNMP does not show this.

snmpwalk -c public -v 2c 192.168.1.1 .1.3.6.1.2.1.31.1.1.1.18
IF-MIB::ifAlias.1 = STRING: LAN
IF-MIB::ifAlias.2 = STRING: LAN2
IF-MIB::ifAlias.3 = STRING: Internet
IF-MIB::ifAlias.30866 = STRING: PERM2
IF-MIB::ifAlias.30868 = STRING: PERM3 30M
IF-MIB::ifAlias.52134 = STRING: vtun106
IF-MIB::ifAlias.55037 = STRING: vtun109
IF-MIB::ifAlias.55636 = STRING: OFFICE
IF-MIB::ifAlias.55753 = STRING: NEW OFFICE

If I go into configuration mode, delete the description, add the description again.
I’m starting to see it:

snmpwalk -c public -v 2c 192.168.1.1 .1.3.6.1.2.1.31.1.1.1.18
IF-MIB::ifAlias.1 = STRING: LAN
IF-MIB::ifAlias.2 = STRING: LAN2
IF-MIB::ifAlias.3 = STRING: Internet
IF-MIB::ifAlias.30866 = STRING: PERM2
IF-MIB::ifAlias.30868 = STRING: PERM3 30M
IF-MIB::ifAlias.52134 = STRING: KAZAN
IF-MIB::ifAlias.55037 = STRING: KAZAN2
IF-MIB::ifAlias.55636 = STRING: OFFICE
IF-MIB::ifAlias.55753 = STRING: NEW OFFICE

But after a while, again I see this:

snmpwalk -c public -v 2c 192.168.1.1 .1.3.6.1.2.1.31.1.1.1.18
IF-MIB::ifAlias.1 = STRING: LAN
IF-MIB::ifAlias.2 = STRING: LAN2
IF-MIB::ifAlias.3 = STRING: Internet
IF-MIB::ifAlias.30866 = STRING: vtun104
IF-MIB::ifAlias.30868 = STRING: vtun105
IF-MIB::ifAlias.52134 = STRING: vtun106
IF-MIB::ifAlias.55037 = STRING: vtun109
IF-MIB::ifAlias.55636 = STRING: vtun110
IF-MIB::ifAlias.55753 = STRING: vtun111

Details

Difficulty level
Unknown (require assessment)
Version
1.1.8, 1.2.0, 1.2.2
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

Not seeing this issue when setting "description" field - we've run it in production for years bridging our OpenStack and datacenter environments, and the names show up correctly (blanked sensitive details):

image.png (1×1 px, 258 KB)

The issue may be with OpenVPN/dynamic interfaces only, without the option "persist".
In that case, if no connectivity between interfaces it tried to re-add the interface "down/up" vtunX with a new SNMP index. And it will be in the loop until connectivity will be restored with the remote site.

VyOS 1.4 uses persistent OpenVPN interfaces.

image.png (98×1 px, 7 KB)

Description/Alias sticks

erkin set Issue type to Bug (incorrect behavior).Aug 31 2021, 6:43 PM

Use the persist option as after each interface, recreation indexes are created dynamically.