hi all ,
I want to record all my traffic Usage via server's ehternet port
I using command cat /proc/net/dev and cut traffic send/ recive via ethernet like below
cat /proc/net/dev | grep eth1.1 | awk '{print $1,$2,$10}'
eth0 26841759 1221608
Receive: 26841759
Transmit : 1221608
I can save this two parameter to zabbix without problem , but IF I reset the server or disable/enable ehternet port this counter was reset
how can I add new data ( after reset or reboot the server ) to last valid data (befor reset or reboot the server )?
I don't want to reset ethernet Traffic download data
how can I record new data in zabbix Item via formula (for example if newdata<olddata then newdata=olddata+newdata)
I want to record all my traffic Usage via server's ehternet port
I using command cat /proc/net/dev and cut traffic send/ recive via ethernet like below
cat /proc/net/dev | grep eth1.1 | awk '{print $1,$2,$10}'
eth0 26841759 1221608
Receive: 26841759
Transmit : 1221608
I can save this two parameter to zabbix without problem , but IF I reset the server or disable/enable ehternet port this counter was reset
how can I add new data ( after reset or reboot the server ) to last valid data (befor reset or reboot the server )?
I don't want to reset ethernet Traffic download data
how can I record new data in zabbix Item via formula (for example if newdata<olddata then newdata=olddata+newdata)
Comment