Server: {HOSTNAME} ({HOST.IP}) zbx;triggerid:{TRIGGER.ID} zbx;ok:1 Description: Problem resolved! Time of resolved problem: {DATE} {TIME}
Annotations
zbx;graphs -- enables attached graphs zbx;graphs_period=10800 -- set graphs period (default - 3600 seconds) zbx;graphs_t want create a new task about recovery in Jira
You can use Jira format text in your actions: https://jira.atlassian.com/secure/WikiRendererHelpAction.jspa?section=all
Test script
You can use the following command to create a ticket in Jira from your command line: python jirabix.py "jira_username" "ticket_subject" "ticket_desc" where
jira_username - username from Jira user profile
For ticket_subject and ticket_desc you may use "test" "test"
If you want to test real text from zabbix action message copy test/entry.txt from repo and change the contents of the file on your real data and change jirabix.py like this:
And run: python jirabix.py "jira_username" "ticket_subject
Result
See how creates the ticket with graf from Zabbix:
When problem is going to OK, script convert the ticket to "Done" status with comment from zabbix recovery message: