Hi,
I’m trying to create a calculated item from values in interface discovery, but I haven’t really figured out how yet. I think the documentation is pretty clear, but somehow it isn’t working in my system. I’m running Zabbix 2.4.8.
So, I need to see incoming packets per second (pps) on all interfaces on a router. I have collected three values from my interface discovery rules: ifHCInBroadcastPkts, ifHCInMulticastPkts and ifHCInUcastPkts. These are working fine and I get data from each one. In order to get pps, I need to combine these into a new item.
So I created an Item Prototype in my discovery rules like this:
Name: {#SNMPVALUE} - ifHCInPkts
Type: Calculated
Key: ifHCInPkts.[{#SNMPINDEX}]
and I’ve tried these four exact formulas:
Formula:
But the only thing I see is this error:
Cannot evaluate function "last()": item ”router01:”ifHCInBroadcastPkts[{#SNMPINDEX}]”" does not exist
What am I doing wrong?
I’m trying to create a calculated item from values in interface discovery, but I haven’t really figured out how yet. I think the documentation is pretty clear, but somehow it isn’t working in my system. I’m running Zabbix 2.4.8.
So, I need to see incoming packets per second (pps) on all interfaces on a router. I have collected three values from my interface discovery rules: ifHCInBroadcastPkts, ifHCInMulticastPkts and ifHCInUcastPkts. These are working fine and I get data from each one. In order to get pps, I need to combine these into a new item.
So I created an Item Prototype in my discovery rules like this:
Name: {#SNMPVALUE} - ifHCInPkts
Type: Calculated
Key: ifHCInPkts.[{#SNMPINDEX}]
and I’ve tried these four exact formulas:
Formula:
Code:
last(”ifHCInBroadcastPkts.[{#SNMPVALUE}]”)+last(”ifHCInMulticastPkts.[{#SNMPVALUE}]”)+last(”ifHCInUcastPkts.[{#SNMPVALUE}]”)
Code:
last(”ifHCInBroadcastPkts[{#SNMPVALUE}]”)+last(”ifHCInMulticastPkts[{#SNMPVALUE}]”)+last(”ifHCInUcastPkts[{#SNMPVALUE}]”)
Code:
last(”ifHCInBroadcastPkts.[{#SNMPINDEX}]”)+last(”ifHCInMulticastPkts.[{#SNMPINDEX}]”)+last(”ifHCInUcastPkts.[{#SNMPINDEX}]”)
Code:
last(”ifHCInBroadcastPkts[{#SNMPINDEX}]”)+last(”ifHCInMulticastPkts[{#SNMPINDEX}]”)+last(”ifHCInUcastPkts[{#SNMPINDEX}]”)
Cannot evaluate function "last()": item ”router01:”ifHCInBroadcastPkts[{#SNMPINDEX}]”" does not exist
What am I doing wrong?
Comment