feature: Add support for dynamic interfaces in ifAlias script (#6005)

* add support for dynamic interfaces in ifAlias script

* netlink and ip support alias (`ip link set IFACE alias ALIAS`). In an
  environment with dynamic interfaces, it is useful to be able retrieve
  aliases from ip.

* we cannot assume next iface oid is n + 1 since oids do not necessarily
  follow incrementally when some interfaces has been destroyed and
  recreated.

* use straight POSIX shell

* I agree to the conditions of the Contributor Agreement contained in
doc/General/Contributing.md.
This commit is contained in:
ollb
2017-02-27 00:22:03 +01:00
committed by Neil Lathwood
parent 3f5bf56b55
commit 698584e14d
2 changed files with 102 additions and 31 deletions

View File

@@ -183,6 +183,7 @@ LibreNMS contributors:
- Stefan Behte <craig at haquarter.de> (craig)
- Zane C. Bowers-Hadley <vvelox@vvelox.net> (vvelox)
- Valentin Polonuyer <valik.vicious@gmail.com> (ValikVicious)
- Olivier Le Brouster <olb@nebkha.net> (ollb)
Observium was written by:
- Adam Armstrong