Ad Widget

Collapse

Test macro strings inside triggers.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mbribeiro@gmail.com
    Junior Member
    • Jun 2018
    • 13

    #1

    Test macro strings inside triggers.

    Hi, we defined some macros in trigger's tag via LLD item. One of these tags is the name of the city where some network device is located. In each item's trigger there is a condition for the trigger occurs and we want to test the location in order to enable or not the trigger.
    For example: (myitem.lastvalue() > 15) and ({#CITY}="NEW YORK"). Of course we did test this and it does not work. Is there a way to do this ? If the macro's type is integer it works!
  • Tulkis
    Junior Member
    • Feb 2019
    • 7

    #2
    It could be really good feature, but desert balls are usual here.

    Comment

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

      #3
      What version of Zabbix? Latest ones have discovery overrides, where you can define if that trigger is created enabled or not.

      Comment

      Working...