Install bandwidthd-pgsql by entering the following commands in the terminal:
sudo apt update sudo apt install bandwidthd-pgsql
Description:
Tracks usage of TCP/IP and builds html files with graphs
BandwidthD tracks usage of TCP/IP network subnets and builds html files with graphs to display utilization. Charts are built by individual IPs. Color Codes HTTP, TCP,UDP, ICMP, VPN, P2P, etc. . This is the PostgreSQL version of bandwidthd which supports multiple sensors and uses a dynamic (php-based) web interface. If you don't need these features then using the package bandwidthd is suggested.
Homepage: http://bandwidthd.sourceforge.net/
Version: 2.0.1+cvs20090917-10ubuntu1
Section: universe/net