Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-4733

Using macros in triggers expressions (at least clarify which kind of macros works fine in documentation)

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 1.8.10
    • Server (S)
    • centos 5.4

      Hi,

      I'm trying to define MACROS which define periods, for example (using a "double?" hack):

      {$PERIOD_8X5} = (

      {Zabbix::vfs.file.exists[/etc/hosts].time(0)}

      >070000 &

      {Zabbix::vfs.file.exists[/etc/hosts].time(0)}

      <150000)

      So I can use a trigger expression like:

      {Host:key.last(0)}

      & {$PERIOD_8X5}

      But it doesn't work

      If it is not supposed to work, please add a note about complex macros in http://www.zabbix.com/documentation/1.8/manual/config#user_macros

      For the moment I will follow Richvl tip (define START and END times with macros, and expand only that numbers)

      Thanks!

            martins-v Martins Valkovskis
            i5513 Javier Barroso
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: