PDA

View Full Version : Using 1.1-beta9 aggregration


kempkep
27-04-2006, 07:54
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

Alexei
27-04-2006, 09:09
This is already documented at:

http://www.zabbix.com/manual/v1.1/config_items_types.php

grabber
27-04-2006, 14:06
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.

zerone
03-05-2006, 08:50
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
03-05-2006, 13:01
It is not supported yet. Currently aggregation works only for items having same Key.

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.