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

Why macro {EVENT.STAUS} in recovery operations returns 'RESOLVED', not 'OK'?

    XMLWordPrintable

Details

    • Problem report
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 5.0.30
    • None
    • None
    • None

    Description

      Configured action operations message:
      Subject:

      {HOSTNAME}:{TRIGGER.NAME}:{ITEM.LASTVALUE}:{EVENT.STATUS}
      Message: {EVENT.ID} {TRIGGER.ID} {TRIGGER.SEVERITY} {DATE} {TIME} {ITEM.ID1}:{ITEM.NAME1}={ITEM.LASTVALUE1} {ITEM.ID2}:{ITEM.NAME2}={ITEM.LASTVALUE2} {ITEM.ID3}:{ITEM.NAME3}={ITEM.LASTVALUE3} {ITEM.ID4}:{ITEM.NAME4}={ITEM.LASTVALUE4} {ITEM.ID5}:{ITEM.NAME5}={ITEM.LASTVALUE5} {ITEM.ID6}:{ITEM.NAME6}={ITEM.LASTVALUE6} {ITEM.ID7}:{ITEM.NAME7}={ITEM.LASTVALUE7} {ITEM.ID8}:{ITEM.NAME8}={ITEM.LASTVALUE8} {ITEM.ID9}:{ITEM.NAME9}={ITEM.LASTVALUE9}

      Configured action recovery operations message:
      Subject: {HOSTNAME}

      :

      {TRIGGER.NAME}

      :

      {ITEM.LASTVALUE}

      :*

      {EVENT.STATUS}

      *
      Message:

      {EVENT.ID} {TRIGGER.ID} {TRIGGER.SEVERITY} {DATE} {TIME} {ITEM.ID1}

      :

      {ITEM.NAME1}

      =

      {ITEM.LASTVALUE1} {ITEM.ID2}

      :

      {ITEM.NAME2}

      =

      {ITEM.LASTVALUE2} {ITEM.ID3}

      :

      {ITEM.NAME3}

      =

      {ITEM.LASTVALUE3} {ITEM.ID4}

      :

      {ITEM.NAME4}

      =

      {ITEM.LASTVALUE4} {ITEM.ID5}

      :

      {ITEM.NAME5}

      =

      {ITEM.LASTVALUE5} {ITEM.ID6}

      :

      {ITEM.NAME6}

      =

      {ITEM.LASTVALUE6} {ITEM.ID7}

      :

      {ITEM.NAME7}

      =

      {ITEM.LASTVALUE7} {ITEM.ID8}

      :

      {ITEM.NAME8}

      =

      {ITEM.LASTVALUE8} {ITEM.ID9}

      :

      {ITEM.NAME9}

      =

      {ITEM.LASTVALUE9}

      The sample message is below:
      [2023-01-03 16:22:41] alarm_server 10.10.10.10:服务器可用内存比例小于5%:99.050556:PROBLEM 9346186
      535923
      Disaster
      2023.01.03 16:22:40
      975279:Available memory in %=99.050556
      UNKNOWN:UNKNOWN=UNKNOWN
      UNKNOWN:UNKNOWN=UNKNOWN
      UNKNOWN:UNKNOWN=UNKNOWN
      UNKNOWN:UNKNOWN=UNKNOWN
      UNKNOWN:UNKNOWN=UNKNOWN
      UNKNOWN:UNKNOWN=UNKNOWN
      UNKNOWN:UNKNOWN=UNKNOWN
      UNKNOWN:UNKNOWN=UNKNOWN

      [2023-01-03 16:24:40] alarm_server 10.10.10.10:服务器可用内存比例小于5%:99.050348:RESOLVED 9346186
      535923
      Disaster
      2023.01.03 16:24:40
      975279:Available memory in %=99.050348
      UNKNOWN:UNKNOWN=UNKNOWN
      UNKNOWN:UNKNOWN=UNKNOWN
      UNKNOWN:UNKNOWN=UNKNOWN
      UNKNOWN:UNKNOWN=UNKNOWN
      UNKNOWN:UNKNOWN=UNKNOWN
      UNKNOWN:UNKNOWN=UNKNOWN
      UNKNOWN:UNKNOWN=UNKNOWN
      UNKNOWN:UNKNOWN=UNKNOWN

      so
      1. Why macro

      {EVENT.STAUS} in recovery operations returns 'RESOLVED', not 'OK'?
      2. macro {EVENT.STAUS}

      's values is 'PROMLEM/OK' or 'PROMLEM/RESOLVED'?

      I find it all returns OK in the site below:
      https://www.zabbix.com/documentation/6.2/en/manual/config/notifications/action/operation/macros?hl=EVENT.STATUS
      https://support.zabbix.com/browse/ZBX-17194

      Attachments

        Activity

          People

            bmickiewicz Bartosz Mickiewicz
            shenhua19891109 shenhua
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: