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 <vincent@systemli.org>
parent
d92f0873
Please register or sign in to comment