zabbix-youtrack-action

Create issue in Youtrack from Zabbix

View on GitHub

zabbix-youtrack-action

zabbix-youtrack-action code quality

Create issue in Youtrack from Zabbix

Install

  1. Copy this repo to alertscripts directory

  2. Create new media type YT-WORKFLOW with parameters (see screenshot in ./docs folder):
    • {ALERT.SENDTO}
    • {ALERT.SUBJECT}
    • {ALERT.MESSAGE}
    • YOUR_YOUTRACK_PASSWORD (zabbix_api)
    • YOUR_ZABBIX_PASSWORD (zabbix)
  3. Create user:
    • Zabbix - zabbix_api with *Zabbix Super Admin permissions
    • Zabbix - YT with Zabbix User* permissions, and set media type **YT-WORKFLOW - link to youtack (e.g. https://youtrack.example.com)
    • Youtrack - zabbix user (permission in your project)
  4. Create Actions (see screenshot in ./docs folder):
  1. Assign Profile.DevOps.ZabbixServer.ALL to Zabbix Server
  2. Add to UserParameter on Zabbix Server:
    • UserParameter=zabbix_server_ptzabbixalertytworkflow.py, grep -q ‘ERROR - Exit with error’ /var/log/zabbix/PtZabbixAlertYTWorkflow.log; echo $?;

LAST. Debug code for your YT-WORKFLOW (see screenshot in ./docs folder)

NOTES

This script contains a lot of “hardcode”, issues contains Refactors tasks.