Hello,
Recently I installed docker on my armbian and motd got broken. Previously it was printing correctly information about traffic:
RX today: 20,72 GiB
But after installing docker and playing with some images motd is displaying following error:
RX today: Error: Not all requested interfaces found in database or given interfaces aren't unique.
The problem is that docker adds new network interfaces that are not initialized in vnstat. I've solved my issue by adding the new docker interfaces in vnstat:
vnstat --add -i docker0
vnstat --add -i veth160e0f9
Perhaps /etc/update-motd.d/30-armbian-sysinfo script should somehow detect new interfaces and add them automatically to vnstat or maybe variable in /etc/default/armbian-motd should not include virtual interfaces?
PRIMARY_INTERFACE="$(ls -1 /sys/class/net/ | grep -v lo | sed -n -e 'H;${x;s/\n/+/g;s/^+//;p;}')"