Answer the question
In order to leave comments, you need to log in
How to set up calculation in items in Zabbix?
Essence of the question: there are several hypervisors for ESXi 5.1 and 6.0, monitoring is configured, the question arose: how to calculate the percentage of CPU load? Everything is done through the built-in Template Virt VMware Hypervisor template, there are two data elements (items): CPU frequency and CPU usage, which should show the average frequency on all cores and the average load on all cores, but on one of the servers, CPU frequency shows an average frequency of 2 GHz, which is correct, and CPU usage can go up to 8xCPU frequency - i.e. up to almost 16 GHz. How to win this is not clear.
I tried to create a data item like CPU cores * CPU frequency, calculation formula
last("vmware.hv.hw.cpu.freq[{$URL},{HOST.HOST}]") * last"(vmware.hv.hw.cpu.num[{$URL},{HOST.HOST}]")
- as a result, I received the message Macro {$URL} is not numeric, while the codelast("vmware.hv.cpu.usage[{$URL},{HOST.HOST}]") * 100 / last("vmware.hv.hw.cpu.freq[{$URL},{HOST.HOST}]")
works great and doesn't throw any errors. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question