Ad Widget

Collapse

Total incoming/outgoing network traffic for 2 interfaces

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xergiopd
    Junior Member
    • May 2016
    • 5

    #1

    Total incoming/outgoing network traffic for 2 interfaces

    Hi all,
    i have a server with two network intefaces eth0 and eth1, im trying to create a graph for monitoring the total incoming/outgoing network traffic on both network interface but i always take "Not supported".

    This is what i've tryied:

    grpsum["host aggregate","net.if.in[eth0,bytes],net.if.in[eth1,bytes]","last","0"]

    Can anyone help me?


    thx
    Sergio
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    It's simpler to use Calculated type of data.

    First, let's assume that you have two interfaces:
    - eth0
    - eth1

    Then, you created (automatically or manually) four items:
    - net.if.in[eth0]
    - net.if.out[eth0]
    - net.if.in[eth1]
    - net.if.out[eth1]

    Finally, you create manually two more items:
    - total.in
    - total.out

    Code:
    Name: Total Incoming traffic
    Type: Calculated
    Key: total.in
    Formula: last(net.if.in[eth0])+last(net.if.in[eth1])
    Type of information: Numeric(unsigned)
    Data type: bps
    .....
    Store value: As is
    Show value: As is
    Use the same settings for total.out.

    After Update Interval, your calculated item will save the summarized data for incoming traffic on both interfaces.

    BTW, if you don't want to save data and want see only(!) graph, you can use Stacked graph type, which will automatically draw the picture of total traffic.
    Sincerely yours,
    Aleksey

    Comment

    • xergiopd
      Junior Member
      • May 2016
      • 5

      #3
      Thx it works perfectly!

      Sergio

      Comment

      • richick
        Junior Member
        • Oct 2022
        • 1

        #4
        aib xergiopd Dear Alksyey, I'm looking to do the same configuration for a Windows Server with SNMPv2 for 1 interface. Is it possible? Let me know if you need more info.

        Regards, Richard

        Comment

        Working...