Use interface name instead of descr for querying interface names.
Brought to you by:
patrickproy
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.