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

add trigger expression example to documentation with "not" operator

    XMLWordPrintable

Details

    • Documentation task
    • Status: Confirmed
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Documentation (D)
    • None

    Description

      Here https://www.zabbix.com/documentation/5.0/manual/config/triggers/expression

      Surprisingly we do not have such examples with "not" in expression.
      I suggest to add this one as #10 (after #9), let's select complicated scenario.
      I tested it and it looks like working:

      {zabbix:system.cpu.load[all,avg1].min(5m)}>2 
      and not ({zabbix:system.cpu.load[all,avg1].dayofweek(0)}=7 and {zabbix:system.cpu.load[all,avg1].time(0)}>230000) 
      and not ({zabbix:system.cpu.load[all,avg1].dayofweek(0)}=1 and {zabbix:system.cpu.load[all,avg1].time(0)}<010000)
      

      The trigger may change its status to true any time except of 2 hours time window on a week change (Sunday 11:00 PM - Monday 1:00 AM)

      Attachments

        Activity

          People

            zabbix.dev Zabbix Development Team
            zalex_ua Oleksii Zagorskyi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: