Trying to calculate 2 aggregates with Zabbix Server 4.0.3
In the imgur link below you can see the calc formula and that both aggregates ( grpsums ) are functional and do exist. While inspecting the latest data I can see an error of "Cannot evaluate function "last()": item "Zabbix server:grpsum["uDPU","agent.ping","last"]" does not exist." in the images below you can see that is not accurate. Perhaps I'm not escaping everything that needs to be escaped?
Here is the formula in text form as well
^^ this provides me with a total count of hosts within the host group "uDPU" ... ^^ provides me with a total count of available agents within the same group
The goal here with these items is to get a simple online/offline count of hosts within a host group. So the desired output is '2'. I'm very open to any other suggestions to get to this goal as there is more than one way to skin a cat.
Thanks for the help
In the imgur link below you can see the calc formula and that both aggregates ( grpsums ) are functional and do exist. While inspecting the latest data I can see an error of "Cannot evaluate function "last()": item "Zabbix server:grpsum["uDPU","agent.ping","last"]" does not exist." in the images below you can see that is not accurate. Perhaps I'm not escaping everything that needs to be escaped?
Here is the formula in text form as well
Code:
last("grpsum[\"uDPU\",\"agent.ping\",\"last\"]") - last("grpsum[\"uDPU\",\"zabbix[host,agent,available]\",\"last\"]")
The goal here with these items is to get a simple online/offline count of hosts within a host group. So the desired output is '2'. I'm very open to any other suggestions to get to this goal as there is more than one way to skin a cat.
Thanks for the help