Ad Widget

Collapse

Trigger prototype expression with LLD macros

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pstage
    Junior Member
    • Apr 2022
    • 7

    #1

    Trigger prototype expression with LLD macros

    Hi Everyone,

    I was wondering whether it was possible to create a trigger prototype expression embedding a LLD macros, knowing that this LLD macros is not always defined (depending on the targets). Below is a part of the expression I need to work with:

    ({$INST.MANAGE.ALL}=2 or ({$INST.MANAGE.ALL}=0 and {$INST.MANAGE:"{#IFNAME}"}=1))

    , knowing that {$INST.MANAGE:"{#IFNAME}"} may be defined or not. For now, the expression works well if the LLD macro is defined, but fails otherwise.

    Thx
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    You should at least have {$INST.MANAGE}. It will be used if specific contextual macro is not present. Otherwise it will not be resolved...

    Comment

    • pstage
      Junior Member
      • Apr 2022
      • 7

      #3
      Hi and thx for your answer. Unfortunately, I already tested this and, though ($INST.MANAGE} was well defined ({$INST.MANAGE:"{#IFNAME}"} was not), I got an error telling me this last was not defined ... the trigger did not trigger. Thx anyway

      Comment

      Working...