Linux ifalias

If you would like to put descriptions on your interfaces on Linux os, you can use the script provided in scripts/ifAlias.py

Install additional (python) package:

sudo pip install snmp_passpersist

Save it somewhere on the systems you want to return ifAliases (i.e. /usr/local/bin/ifAlias.py), then add this into your snmpd.conf:

pass_persist .1.3.6.1.2.1.31.1.1.1.18 /usr/local/bin/ifAlias.py

  • Common Linux systems support ip link set alias command:
ip link set eth0 alias "Transit: YourISP Inc. Leased Line"
  • Generic Debian/Ubuntu:

You can put the descriptions into /etc/network/interfaces

# eth0: Transit: YourISP Inc. Leased Line
iface eth0 inet static
  ....

for access script to /etc/frr/frr.conf you need add Debian-snmp user to frr and frrvty groups:

sudo usermod -a -G frr,frrvty Debian-snmp

On the next poll, Observium should then pick up your descriptions. (Don't forget to restart snmpd after changing the configuration!)