Ad Widget

Collapse

Save Download traffic size after reset ethernet traffic

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • omid1979
    Member
    • Nov 2016
    • 33

    #1

    Save Download traffic size after reset ethernet traffic

    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)


  • kernbug
    Senior Member
    • Feb 2013
    • 330

    #2
    Originally posted by omid1979
    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)

    Hi

    If you have N servers your "tool" is Netflow protocol for traffic accounting and statistics. Or use local counter for accumulated calculated value in cron (script + custom user.parameter in Zabbix agent).

    Comment

    • omid1979
      Member
      • Nov 2016
      • 33

      #3
      Originally posted by kernbug

      Hi

      If you have N servers your "tool" is Netflow protocol for traffic accounting and statistics. Or use local counter for accumulated calculated value in cron (script + custom user.parameter in Zabbix agent).
      Thanks so much , know I use script +userparameter to do that ,
      but If I want to use netflow how can I do ? can I monitor traffic statistics per port for each device using zabbix ?

      Comment

      • kernbug
        Senior Member
        • Feb 2013
        • 330

        #4
        Originally posted by omid1979

        Thanks so much , know I use script +userparameter to do that ,
        but If I want to use netflow how can I do ? can I monitor traffic statistics per port for each device using zabbix ?
        Netflow consist of 3 main components: collector, sensor, analyzer. You need sensor(for example fprobe on linux hosts, network hardware mostly support out the box) and collector (for example flow-tools) from which you could export statistics to Zabbix. It's a little bit complicated for this topic, but Netflow is more than total traffic statistics.

        Comment

        Working...