Ad Widget

Collapse

Zabbix Aggregate Check for Switches

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • COOLBGT
    Junior Member
    • Jun 2015
    • 2

    #1

    Zabbix Aggregate Check for Switches

    Hello guys. I want to monitor my uplink incoming and outgoing traffic with Zabbix. One of the uplinks to one of our providers is on port20 on Swtich1 and the other uplink provider is on port31 on Switch2. The switches are Dell Force10 S4810. For example, I am currently monitoring those ports separately as follows:

    Zabbix Type: SNMPv2 agent
    Key: net.if.in.tengig0-31
    Host interface: Switch IP
    etc.

    The above works great for the incoming traffic. I want to aggregate this from the 2 switches and have 1 item that will show what is the total traffic on the 2 ports. The 2 switches are created as separate hosts in Zabbix. I followed the instructions on the Zabbix help page, and came up with the following key for the zabbix aggregate:

    grpsum[["Switch4 - Force10","Switch5 - Force10"],net.if.in.tengig0-32,last,0]

    I just wanted to check if I can aggregate the stats from the same port on the 2 hosts, but the item came up as unsupported. Switch4 - Force10 and Switch5 - Force10 is how I have named my hosts in Zabbix


    How can I aggregate those 2. Any help would be greatly appreciated.
    Last edited by COOLBGT; 06-10-2015, 16:01.
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hello and welcome to Zabbix forums!

    I believe aggregated items will not really fit here because item type "Zabbix aggregate" is used to get the values from selected host groups having specific items and would fit if you wanted to get something like total incoming traffic of port20 on all your hosts located in "Switches" host group.

    What I think would be more suitable in your case are "calculated items".


    Thus in calculated formula you can use the values from specific items on specific hosts.
    Your formula for a calculated item would look something like this:
    Code:
    last("Switch4 - Force10:net.if.in.tengig0-31")+last("Switch5 - Force10:net.if.in.tengig0-32")
    Hope this helps!

    Best Regards,
    Ingus

    Comment

    • COOLBGT
      Junior Member
      • Jun 2015
      • 2

      #3
      Originally posted by ingus.vilnis
      Hello and welcome to Zabbix forums!

      I believe aggregated items will not really fit here because item type "Zabbix aggregate" is used to get the values from selected host groups having specific items and would fit if you wanted to get something like total incoming traffic of port20 on all your hosts located in "Switches" host group.

      What I think would be more suitable in your case are "calculated items".


      Thus in calculated formula you can use the values from specific items on specific hosts.
      Your formula for a calculated item would look something like this:
      Code:
      last("Switch4 - Force10:net.if.in.tengig0-31")+last("Switch5 - Force10:net.if.in.tengig0-32")
      Hope this helps!

      Best Regards,
      Ingus
      Thanks for the assistance. I have used this for my formula, but what to use as a key? Also, can I just create a new host and create this item for that host (with localhost IP). Or should I add this item to one of the switch hosts?

      Comment

      • ingus.vilnis
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Mar 2014
        • 908

        #4
        Hi,

        In the item key for calculated items you can use any freeform string with supported symbols.
        Code:
        0-9a-zA-Z_-.
        Yes, you can use this item with such key and formula on any host, also a virtual host with localhost as IP.

        Best Regards,
        Ingus

        Comment

        Working...