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
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
Comment