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

Manually closing an event does not generate recovery TAGs.

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 7.2.3
    • None
    • None

      Steps to reproduce:

      1. Set tag at host level
      2. Set tag at trigger level
      3. Configure a media to send the event via email.
      4. Configure a notification message and insert the macros {EVENT.TAGS} and {EVENT.RECOVERY.TAGS}.
      5. Generate a problem event from that trigger
      6.  Resolve the issue so that Zabbix automatically closes the problem.
      7. Generate a problem event from that trigger again.
      8. This time, close the problem manually.

      Result:

      If we check the Action Log or the message sent by email, we will see that when Zabbix automatically closes a problem, both macros {EVENT.TAGS} and {EVENT.RECOVERY.TAGS} are resolved and appear in the message.
      However, if the problem is manually resolved, the macro {EVENT.RECOVERY.TAGS} is not resolved and the tags do not appear in the message.

      Querying the event via API shows the same behavior:

      Recovery event, automatically closed
      
      {
      "jsonrpc": "2.0",
      "result": [
      {
      "eventid": "5075",
      "source": "0",
      "object": "0",
      "objectid": "25354",
      "clock": "1741959275",
      "value": "0",
      "acknowledged": "0",
      "ns": "770054142",
      "name": "Generic Router Multilink: Unavailable by ICMP ping - 192.168.122.237 - RG-Router02-Multilink",
      "severity": "0",
      "r_eventid": "0",
      "c_eventid": "0",
      "correlationid": "0",
      "userid": "0",
      "cause_eventid": "0",
      "opdata": "",
      "suppressed": "0",
      "urls": [],
      "tags": [
      {
      "tag": "ip",
      "value": "secundario"
      },
      {
      "tag": "notifica",
      "value": "incidente"
      },
      {
      "tag": "notifica",
      "value": "sla"
      },
      {
      "tag": "scope",
      "value": "availability"
      },
      {
      "tag": "symptom_code",
      "value": "Perda de comunicação com o dispositivo"
      },
      {
      "tag": "urgency",
      "value": "4 - Alta"
      },
      {
      "tag": "component",
      "value": "health"
      },
      {
      "tag": "component",
      "value": "network"
      },
      {
      "tag": "class",
      "value": "network"
      },
      {
      "tag": "target",
      "value": "snmp"
      }
      ]
      }
      ],
      "id": 1
      }
      
      Recovery event, generated from manual closing.
      
      {
      "jsonrpc": "2.0",
      "result": [
      {
      "eventid": "5077",
      "source": "0",
      "object": "0",
      "objectid": "25354",
      "clock": "1741960185",
      "value": "0",
      "acknowledged": "0",
      "ns": "560950130",
      "name": "Generic Router Multilink: Unavailable by ICMP ping - 192.168.122.247 - RG-Router02-Multilink",
      "severity": "0",
      "r_eventid": "0",
      "c_eventid": "0",
      "correlationid": "0",
      "userid": "1",
      "cause_eventid": "0",
      "opdata": "",
      "suppressed": "0",
      "urls": [],
      "tags": [
      {
      "tag": "component",
      "value": "health"
      },
      {
      "tag": "component",
      "value": "network"
      },
      {
      "tag": "class",
      "value": "network"
      },
      {
      "tag": "target",
      "value": "snmp"
      }
      ]
      }
      ],
      "id": 1
      } 

      Expected:
      So that the macro {EVENT.RECOVERY.TAGS} shows the tags at the trigger level and the ones inherited by it.

            zabbix.dev Zabbix Development Team
            lsouthier Leonardo Luis Southier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: