Menu

#43 Use interface name instead of descr for querying interface names.

Snmp plugins
open
nobody
None
5
2016-07-17
2016-07-17
No

Ubuntu 16.04 is now putting long descriptions for network interfaces with

So the command
snmpwalk .... iso.3.6.1.2.1.2.2.1.2

Returns:

iso.3.6.1.2.1.2.2.1.2.1 = STRING: "lo"
iso.3.6.1.2.1.2.2.1.2.2 = STRING: "Red Hat, Inc Device 0001"

Reading the docs - it is now apparently recommended to use name instead of description for network interfaces

snmpwalk ..... iso.3.6.1.2.1.31.1.1.1.1

Returns

iso.3.6.1.2.1.31.1.1.1.1.1 = STRING: "lo"
iso.3.6.1.2.1.31.1.1.1.1.2 = STRING: "eth0"

I changed line 33 of check_snmp_int.pl to

my $descr_table = '1.3.6.1.2.1.31.1.1.1.1';

and that worked well.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.