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

Service recovery operation message contains incorrect event name

XMLWordPrintable

      Precondition:

      • Create host, item trapper and trigger with expression =>
        last(/{your_host}/{your_trapper_item_key}<>0
        

        and tag testTag

      • Create service "zabbix service" with tag testTag => equals => 1
      • Create media type "TEST service" => Email with service message templates e.g.
      • Add media to your user

      Steps to reproduce:

      • Create service action with "Conditions => Service equals zabbix service" and
      • Add Operations and Recovery operations
      • Trigger the problem e.g.
        ./bin/zabbix_sender -vv -z "localhost"  -s "{your_host}" -k "{your_trapper_item_key}" -o 1
        
      • Check email message problem name
      • Resolve the problem
      ./bin/zabbix_sender -vv -z "localhost"  -s "{your_host}" -k "{your_trapper_item_key}" -o 0
      
      • Check email message problem name

      Result: Looks that Service recovery operation message and subject don't contain {EVENT.RECOVERY.NAME} macro.

      DB entries in events table=>

      MediatypeHelper.php =>
      https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/ui/include/classes/helpers/CMediatypeHelper.php?at=refs%2Fheads%2Frelease%2F7.0#229,232

      create/src/data.tmpl =>
      https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/create/src/data.tmpl?at=release%2F7.0#801,817,827,887,897,912,922,957,977,997

      Expected: "Service recovery" subject and message should contain {EVENT.RECOVERY.NAME} macro. Service problem name should be "Status of service "zabbix service" changed to OK".

        1. image-2025-05-12-09-51-38-911.png
          15 kB
          Kirils Seve
        2. image-2025-05-12-09-54-24-862.png
          14 kB
          Kirils Seve
        3. image-2025-05-12-10-11-22-705.png
          31 kB
          Kirils Seve
        4. image-2025-05-12-10-13-23-064.png
          26 kB
          Kirils Seve
        5. screenshot-1.png
          32 kB
          Kirils Seve
        6. ZBX-26414.yaml
          2 kB
          Kirils Seve

            zabbix.dev Zabbix Development Team
            kseve Kirils Seve
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 1.5h
                1.5h