January 2019
Intermediate to advanced
798 pages
20h 33m
English
Atlassian JIRA is a popular ticketing system or issue tracker. While it also supports an email gateway for creating issues, we could look at a more advanced way to do that—using the API that JIRA exposes. Media type and user media would have to be created and configured, similar to what we did in the Using scripts as media section earlier in this chapter, although it is proposed that you create a special user for running such scripts.
As for the script itself, something like this would simply create issues with an identical summary, placing the message body from the action configuration in the issue summary:
#!/bin/bash json='{"fields":{"project":{"key":"PROJ"},"summary":"Issue automatically created by Zabbix","description":"'"$1"'","issuetype":{"name":"Bug"}}}' ...Read now
Unlock full access