collectd: fix snmp6 not showing all interfaces
authorNick Hainke <redacted>
Mon, 25 Jan 2021 20:22:19 +0000 (21:22 +0100)
committerNick Hainke <redacted>
Mon, 25 Jan 2021 20:23:40 +0000 (21:23 +0100)
commit922e5b1a8bde4bddca2b0f4eb680a9bf1532db77
tree16344212d1b62867f5f7f280b1367c4ec6b973a0
parentd92f087340f9a547eaea6a8df2b14f10a379eae9
collectd: fix snmp6 not showing all interfaces

Getifaddrs() is not working all the time (e.g. wireguard interfaces).
Instead we use if_nameindex() syscall as suggested in:
 https://stackoverflow.com/a/45796495/8474618

Signed-off-by: Nick Hainke <redacted>
utils/collectd/Makefile
utils/collectd/patches/931-snmp6-add-ipv6-statistics.patch
git clone https://git.99rst.org/PROJECT