I have multiple servers and they have limited internet traffic usage.Unfortunately, the provider has not set up a system to notify the remaining traffic for the servers.
And I am also trying to build a notification system.
I was able to get the amount of traffic consumed with the following command, but this amount starts from 0 every time the server is rebooted.
ifconfig eth0 | grep -E "RX packets" | awk '{print $5}'
what should i do ?