Ad Widget

Collapse

User macro on Trigger expression

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • klein.rfk
    Junior Member
    Zabbix Certified Specialist
    • Jul 2010
    • 7

    #1

    User macro on Trigger expression

    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.
    Last edited by klein.rfk; 27-07-2013, 00:23. Reason: mispelled some words
Working...