-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
7.0.13rc1, 7.2.7rc1, 7.4.0rc1 (master)
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
./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".