Ad Widget

Collapse

Using 1.1-beta9 aggregration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kempkep
    Junior Member
    • Feb 2006
    • 18

    #1

    Using 1.1-beta9 aggregration

    Had a quick evaluation of the new aggregation feature in 1.1beta9 so here is a quick resume of how to use it.

    1. you need a common item key for hosts that all exist in the same group

    eg: item key of prod.http.accesses for hosts host1 and host2 which are both members of a group called prod_web_servers

    2. create a new item under one (or more hosts ) - it does not have to be one of the hosts whose data you are aggregating.

    eg: in dummy_host create item with item key of say...
    grpsum('prod_web_servers', 'prod.http.accesses', 'avg', '120')

    This example averages the http accesses on the hosts in my prod_web_servers group over the past 120 seconds

    The item key needs to be in the form:
    grpfunc('group','key','itemfunc','numeric param')

    grpfunc one of [grpmax,grpmin,grpsum,grpavg]
    group is the group your servers are members of
    key is the common item key each server has
    itemfunc one of [last,min,max,avg,sum,count]
    numeric param is the number of seconds to apply the itemfunc function

    Note: the quotes are required for the numeric param as the server does an atoi call
    Last edited by kempkep; 27-04-2006, 07:26.
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    This is already documented at:

    http://www.zabbix.com/manual/v1.1/co...tems_types.php
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • grabber
      Member
      • Mar 2005
      • 85

      #3
      Originally posted by kempkep
      Had a quick evaluation of the new aggregation feature in 1.1beta9 so here is a quick resume of how to use it.

      1. you need a common item key for hosts that all exist in the same group

      eg: item key of prod.http.accesses for hosts host1 and host2 which are both members of a group called prod_web_servers

      2. create a new item under one (or more hosts ) - it does not have to be one of the hosts whose data you are aggregating.

      eg: in dummy_host create item with item key of say...
      grpsum('prod_web_servers', 'prod.http.accesses', 'avg', '120')

      This example averages the http accesses on the hosts in my prod_web_servers group over the past 120 seconds

      The item key needs to be in the form:
      grpfunc('group','key','itemfunc','numeric param')

      grpfunc one of [grpmax,grpmin,grpsum,grpavg]
      group is the group your servers are members of
      key is the common item key each server has
      itemfunc one of [last,min,max,avg,sum,count]
      numeric param is the number of seconds to apply the itemfunc function

      Note: the quotes are required for the numeric param as the server does an atoi call
      Thanks for the example Kempkep very enlightening.

      Comment

      • zerone
        Junior Member
        • Nov 2005
        • 2

        #4
        How would you aggregate two items on a single host? For instance, I want to aggregate the total outgoing bandwidth on a router that had multiple connections.

        Comment

        • Alexei
          Founder, CEO
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2004
          • 5654

          #5
          It is not supported yet. Currently aggregation works only for items having same Key.

          Originally posted by zerone
          How would you aggregate two items on a single host? For instance, I want to aggregate the total outgoing bandwidth on a router that had multiple connections.
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          Working...