All Projects → OSidorenkov → zabbix-jira

OSidorenkov / zabbix-jira

Licence: MIT license
Python module that allows you to create tasks in Jira by the trigger from Zabbix

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to zabbix-jira

Zabbix In Telegram
Zabbix Notifications with graphs in Telegram
Stars: ✭ 710 (+1675%)
Mutual labels:  notifications, zabbix
Graphical notifications Zabbix
No description or website provided.
Stars: ✭ 77 (+92.5%)
Mutual labels:  notifications, zabbix
app
Source code of intencje.pl website and mobile/desktop apps based on Angular, Firebase, and Capacitor.
Stars: ✭ 12 (-70%)
Mutual labels:  notifications
jira.plugin.zsh
CLI support for JIRA & Git interaction
Stars: ✭ 31 (-22.5%)
Mutual labels:  jira
SwiftObserver
Elegant Reactive Primitives for Clean Swift Architecture #NoRx
Stars: ✭ 14 (-65%)
Mutual labels:  notifications
Sentinel
👀 Native notifications for League of Legends
Stars: ✭ 38 (-5%)
Mutual labels:  notifications
web-pwa
一个针对于 PWA 相关功能的库
Stars: ✭ 31 (-22.5%)
Mutual labels:  notifications
pushpad-php
PHP library for the Pushpad API: the easiest way to send push notifications from websites and web apps.
Stars: ✭ 21 (-47.5%)
Mutual labels:  notifications
alerta-contrib
Contributed integrations, plugins and custom webhooks
Stars: ✭ 107 (+167.5%)
Mutual labels:  zabbix
git-changelog-maven-plugin
Maven plugin that can generate a changelog, or releasenotes, from git repository
Stars: ✭ 52 (+30%)
Mutual labels:  jira
fastlane-plugin-jira release notes
Fastlane Plugin for Jira Release Notes
Stars: ✭ 14 (-65%)
Mutual labels:  jira
estimator-elixir
Elixir side-project: Collaboratively estimate Jira stories (for remote teams)
Stars: ✭ 44 (+10%)
Mutual labels:  jira
lazylead
Eliminate the annoying work within ticketing systems (Jira, GitHub, Trello). Allows automating (without admin access) daily actions like tickets fields verification, email notifications by JQL/GQL, meeting requests to your (or teammates) calendar.
Stars: ✭ 42 (+5%)
Mutual labels:  jira
zbx2git
Zabbix Configuration Versioning Manager
Stars: ✭ 23 (-42.5%)
Mutual labels:  zabbix
php-weathermap-zabbix-plugin
PHP Weathermap plugin for Zabbix (using Zabbix API)
Stars: ✭ 24 (-40%)
Mutual labels:  zabbix
tempomat
CLI for Tempo Jira Timesheets Plugin
Stars: ✭ 45 (+12.5%)
Mutual labels:  jira
Zabbix-Network-Weathermap
Network weathermap for Zabbix
Stars: ✭ 83 (+107.5%)
Mutual labels:  zabbix
monitor ce
OneOaaS Monitor Community Edition
Stars: ✭ 35 (-12.5%)
Mutual labels:  zabbix
zabbix-alerta
Forward Zabbix alerts to the alerta monitoring system
Stars: ✭ 94 (+135%)
Mutual labels:  zabbix
FCMBundle
A Bundle for Symfony projects to send notifications in mobile devices through Firebase Cloud Messaging API
Stars: ✭ 43 (+7.5%)
Mutual labels:  notifications

zabbix-jira

zabbix-jira is python module that allows you to create tasks in Jira with grafs by the trigger from Zabbix.

Requirements:

  • python >= 2.7
  • python libs: requests, jira

Installation:

  1. Copy this repo to your zabbix-server: git clone https://github.com/OSidorenkov/zabbix-jira.git
  2. Copy jirabix.py to your Zabbix AlertScriptsPath directory (see your zabbix_server.conf)
  3. Create and configure config.py near jirabix.py. You can take as an example config.py.example from repo.
  4. Install python libs: pip install -r requirements.txt

Configuration:

  • Create new media type in Zabbix:

2017-06-02 11 33 21

If you use Zabbix 3.0 and higher, add this parameters:

{ALERT.SENDTO}
{ALERT.SUBJECT}
{ALERT.MESSAGE}
  • Add this media to your read user in Zabbix

2017-06-02 11 40 19

Add in "Send to" field jira username (see the profile user in Jira)

  • Configure your Actions:

2017-06-02 11 48 12

Example message:

Last value:{ITEM.VALUE1} ({TIME})
zbx;graphs
zbx;graphs_period=1800
zbx;itemid:{ITEM.ID1}
zbx;triggerid:{TRIGGER.ID}
zbx;title:{HOST.HOST} - {TRIGGER.NAME}
zbx;priority:{TRIGGER.SEVERITY}
Server: {HOSTNAME} ({HOST.IP})

Desc:
{TRIGGER.DESCRIPTION}

2017-06-02 11 48 38

Example recovery message:

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_width=700 -- set graphs width (default - 900px)
zbx;graphs_height=300 -- set graphs height (default - 300px)
zbx;itemid:{ITEM.ID1} -- define itemid (from trigger) for attach
zbx;title:{HOST.HOST} - {TRIGGER.NAME} -- graph title
zbx;triggerid:{TRIGGER.ID} -- define triggerid to link problem and recovery of event
zbx;priority:{TRIGGER.SEVERITY} -- set priority task like as priority of trigger from Zabbix
zbx;ok:1 -- use this parameter only in RECOVERY message, if you don'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:
       2017-06-02 12 18 41
       And run:
      python jirabix.py "jira_username" "ticket_subject

Result

  • See how creates the ticket with graf from Zabbix:

2017-06-02 12_31_18

  • When problem is going to OK, script convert the ticket to "Done" status with comment from zabbix recovery message:

2017-06-02 12_44_41

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].