Ad Widget

Collapse

How to sum multiple Switch Ports for a Link Label

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jca001
    Junior Member
    • Dec 2022
    • 5

    #1

    How to sum multiple Switch Ports for a Link Label

    I have a Managed Switch with multiple connections to a Server as a LAGG (Link Aggregation). The Macros I have in the Label now are:

    IN2: {?last(/Rack Switch/net.if.in[ifInOctets.49154])}
    IN3: {?last(/Rack Switch/net.if.in[ifInOctets.49155])}

    How can I add the 2 values to provide the Total of both connections?
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    You need to create a calculated item in which to summarize the items you need
    After that, use the value in the link label.

    Comment

    • jca001
      Junior Member
      • Dec 2022
      • 5

      #3
      Originally posted by Hamardaban
      You need to create a calculated item in which to summarize the items you need
      After that, use the value in the link label.
      How do I do that?

      Comment

      • fvilarnovo
        Junior Member
        • Jan 2023
        • 17

        #4
        Hi, here you have an example and explanation about how to create calculated items:

        https://blog.zabbix.com/zabbix-monit...xplained/9950/

        Comment

        • jca001
          Junior Member
          • Dec 2022
          • 5

          #5
          Thanks for the quick reply. I will give that a try.

          Comment

          Working...