Checking here: https://www.zabbix.com/documentation...ed_by_location it says I should be able to use USERMACROs on trigger expressions and ITEM KEYs parameters.
BUT, I was trying to do this:
{$INTERCONEXAO_WARNING_TRAFFIC} == the max network traffic I should have in the interface
{$IF_INTERCONEXAO} == the actual interface I need to check
This works:
{firewall01:net.if.out[eth4].avg(600)}>{$INTERCONEXAO_WARNING_TRAFFIC}
But this throw me an error message:
{firewall01:net.if.out[{$IF_INTERCONEXAO}].avg(600)}>{$INTERCONEXAO_WARNING_TRAFFIC}
The error message is:
Incorrect item key "net.if.out[{$IF_INTERCONEXAO}]" provided for trigger expression
So, cant I use USERMACROs like that?
The reason of this is that I have an MPLS link between our affiliate units with different speed limits, and every firewall have this connection in a different network interface, so, to get this on the template I should have the trigger checking a macro I can change on every host.
BUT, I was trying to do this:
{$INTERCONEXAO_WARNING_TRAFFIC} == the max network traffic I should have in the interface
{$IF_INTERCONEXAO} == the actual interface I need to check
This works:
{firewall01:net.if.out[eth4].avg(600)}>{$INTERCONEXAO_WARNING_TRAFFIC}
But this throw me an error message:
{firewall01:net.if.out[{$IF_INTERCONEXAO}].avg(600)}>{$INTERCONEXAO_WARNING_TRAFFIC}
The error message is:
Incorrect item key "net.if.out[{$IF_INTERCONEXAO}]" provided for trigger expression
So, cant I use USERMACROs like that?
The reason of this is that I have an MPLS link between our affiliate units with different speed limits, and every firewall have this connection in a different network interface, so, to get this on the template I should have the trigger checking a macro I can change on every host.