Hey Everyone,
I am fairly new to Zabbix and having an issue trying to figure out how to set up the aggregate functions for a group.
I have the following:
Host group: "VM Hosts"
Item key: vmware.hv.cpu.usage.percent[{$URL},{$UUID}]
Item type: Calculated
Formula: last("vmware.hv.cpu.usage[{$URL},{$UUID}]",0)/(last("vmware.hv.hw.cpu.freq[{$URL},{$UUID}]",0)*last("vmware.hv.hw.cpu.num[{$URL},{$UUID}]",0))
What I want to do is get the average of these item keys across all members of the group, so I tried the following:
grpavg["VM Hosts",vmware.hv.cpu.usage.percent,last,0]
grpavg["VM Hosts","vmware.hv.cpu.usage.percent",last,0]
grpavg["VM Hosts","vmware.hv.cpu.usage.percent[,]",last,0]
These all go unsupported, so I know I am doing something wrong. How would I formulate my grpavg line when my item key contains a reference to MACROS that are defined on each host? I want to do this for several of the metrics in the host (CPU %, memory %, # of VMs, network in, network out, etc) as either SUMs or AVGs, but they all use the same two MACROS ({$URL},{$UUID}) that are defined at the host level.
Thanks in advance. Willing to try any suggestions and report back.
I am fairly new to Zabbix and having an issue trying to figure out how to set up the aggregate functions for a group.
I have the following:
Host group: "VM Hosts"
Item key: vmware.hv.cpu.usage.percent[{$URL},{$UUID}]
Item type: Calculated
Formula: last("vmware.hv.cpu.usage[{$URL},{$UUID}]",0)/(last("vmware.hv.hw.cpu.freq[{$URL},{$UUID}]",0)*last("vmware.hv.hw.cpu.num[{$URL},{$UUID}]",0))
What I want to do is get the average of these item keys across all members of the group, so I tried the following:
grpavg["VM Hosts",vmware.hv.cpu.usage.percent,last,0]
grpavg["VM Hosts","vmware.hv.cpu.usage.percent",last,0]
grpavg["VM Hosts","vmware.hv.cpu.usage.percent[,]",last,0]
These all go unsupported, so I know I am doing something wrong. How would I formulate my grpavg line when my item key contains a reference to MACROS that are defined on each host? I want to do this for several of the metrics in the host (CPU %, memory %, # of VMs, network in, network out, etc) as either SUMs or AVGs, but they all use the same two MACROS ({$URL},{$UUID}) that are defined at the host level.
Thanks in advance. Willing to try any suggestions and report back.
Comment