Ad Widget

Collapse

Caculate items from different hosts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • varvsn
    Junior Member
    • Jul 2014
    • 8

    #1

    Caculate items from different hosts

    Hello,

    I have a question about visualisation of total network traffic from a couple of hosts.
    All hosts have an own item "net.if.in[eth0,bytes]"
    How I can create a graph with total sum of these items ?
    Thanks for answer.
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    You have a couple of options.
    1) Create "Stacked" graph and include all individual Items in graph. You will have all Items value in legend and total graph.
    2) Create one Calculated Item in any of hosts and construct the formula which includes all Items from all Hosts. Then you can create a graph for this Item.
    Sincerely yours,
    Aleksey

    Comment

    • varvsn
      Junior Member
      • Jul 2014
      • 8

      #3
      Thanks for the answer, Alexey!

      I try to create calculated item with formula

      host1:last(net.if.in[eth0,bytes])+host2:last(net.if.in[eth0,bytes])

      What I need to type in "key" position of this item?

      Comment

      • aib
        Senior Member
        • Jan 2014
        • 1615

        #4
        It will be your own choice.
        You can call it "total_in_eth0_on_host0_host1"
        It's only has to be different from other keys.
        Sincerely yours,
        Aleksey

        Comment

        • varvsn
          Junior Member
          • Jul 2014
          • 8

          #5
          The real working formula:

          last("host1:net.if.in[eth0,bytes]")+last("host2:net.if.in[eth0,bytes]")

          Comment

          • Satur
            Junior Member
            • Dec 2019
            • 3

            #6
            This is a working Formula field value for Zabbix 6 to calculate download speed for multiple hosts
            Code:
            last(/host-name-1/net.if.in["enp4s0"]) + last(/host-name-2/net.if.in["enp4s0"])

            Comment

            Working...