{ "info": { "author": "Hugo Cisneiros", "author_email": "hugo.cisneiros@movile.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Utilities" ], "description": "zabbix2jira\n===========\n\n*Creates or updates a ticket on JIRA from Zabbix alarms*\n\nPurpose\n-------\n\nzabbix2jira is a simple command line program that receives an action from\nZabbix (or any other script) and creates (or updates) a ticket on a project\ninside a JIRA installation.\n\nInstallation\n------------\n\nUse the following command under the program directory::\n\n $ pip install -e .\n\nWe recommend using virtualenv to setup a self-contained app directory. In this\ncase, you should use::\n\n $ virtualenv env\n $ source env/bin/activate\n $ pip install -e .\n\nIf you want to see which libraries this application uses, please check the\n``requirements.txt`` file.\n\nUsage\n-----\n\nDefault paths:\n\n- Configuration: */etc/zabbix2jira.cfg*\n- Log: */var/log/zabbix2jira.log*\n- Cache Directory: */var/cache/zabbix2jira*\n\nTo run it, activate virtualenv first::\n\n $ source env/bin/activate\n $ zabbix2jira -h\n\nConfiguration\n-------------\n\nThe command itself uses some default configuration, but you will want\nto configure a file to configure your jira url, username and password.\n\nSimply copy the ``sample-config.cfg`` file to the default configuration\npath (*/etc/zabbix/zabbix2jira.cfg*) or copy to any location and use the\n``-c`` parameter at the CLI call.\n\nThe file itself is self-explanatory.\n\nZabbix Integration\n------------------\n\nCreate an action that calls the script with the proper variables.\n\nWe create a action named ``zabbix2jira`` with the conditions:\n\n* A Maintenance status not in maintenance\n* B Trigger value = PROBLEM\n* C Trigger value = OK\n\nAnd with calculation: ``A and (B or C)``. Pay attention to the\n``(B or C)`` because we want to run the action both on alarm and recovery.\n\n*Note: this changed on Zabbix 3.2. You can skip and B and C conditions\nbecause on this version, problem and recovery operations are separate.*\n\nThen on the *Operations* Tab, create a step that executes a ``Custom script``\non the Zabbix Server with the following commands::\n\n zabbix2jira -v -i {EVENT.ID} PROJECT {TRIGGER.STATUS} \"[Zabbix Alert] {HOSTNAME} - {TRIGGER.NAME}\" \"Alert Details\"\n\nYou can also use the script as a user media and send a message to it.\n\nNote that if using a *virtualenv* setup, activate it before the previous command::\n\n source /opt/z2d/env/bin/activate\n\nExamples\n--------\n\nHere are some examples for running zabbix2jira.\n\nCreate an issue with component ``Alert``::\n\n zabbix2jira -v -p Alert PROJECT PROBLEM \"[Zabbix Alert] PROBLEM\" \"Alert Details\"\n\nWith the zabbix backend enabled, track the event id (123) to acknowledge it::\n\n zabbix2jira -v -i 123 PROJECT PROBLEM \"[Zabbix Alert] PROBLEM\" \"Alert Details\"\n\nRecover the previous issue::\n\n zabbix2jira -v -i 123 PROJECT OK \"[Zabbix Alert] PROBLEM \"Alert Details\"\n\nCreate an issue with type ``Bug``::\n\n zabbix2jira -v -t Bug PROJECT PROBLEM \"[Zabbix Alert] PROBLEM\" \"Alert Details\"", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Movile/zabbix2jira", "keywords": "zabbix,jira,tickets", "license": "GPL version 3", "maintainer": "", "maintainer_email": "", "name": "zabbix2jira", "package_url": "https://pypi.org/project/zabbix2jira/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/zabbix2jira/", "project_urls": { "Homepage": "https://github.com/Movile/zabbix2jira" }, "release_url": "https://pypi.org/project/zabbix2jira/0.2.1/", "requires_dist": [ "docopt", "jira", "py-zabbix", "nose; extra == 'test'" ], "requires_python": "", "summary": "Creates or updates a ticket on JIRA from Zabbix alarms", "version": "0.2.1" }, "last_serial": 2707951, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "92354a8d42cff1dedffb1224cbb8a811", "sha256": "3bc7ed30462c2fa268e27acd960035e5a48c730b1f34021cc775785fb32ae17d" }, "downloads": -1, "filename": "zabbix2jira-0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "92354a8d42cff1dedffb1224cbb8a811", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10299, "upload_time": "2017-03-14T19:05:58", "url": "https://files.pythonhosted.org/packages/2f/fd/8856e1bf722ae6b94bbdb1a701ed5f1c44cb1202b74c12295afd15357925/zabbix2jira-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4fb3c2eff946a777f0a4e2787ab4c3ae", "sha256": "7b87656da02dd6eeb83f6131ca3d3f87452cd95c0a383e340e6549a14d5e9c3a" }, "downloads": -1, "filename": "zabbix2jira-0.1.tar.gz", "has_sig": false, "md5_digest": "4fb3c2eff946a777f0a4e2787ab4c3ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6797, "upload_time": "2017-03-14T19:06:03", "url": "https://files.pythonhosted.org/packages/d1/9e/9965b2d793e52838c2d4ca56d70373572e4a245a934ccd2656c64d06a18d/zabbix2jira-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "04157a42b8411682a0998718b55ace52", "sha256": "f2b92b2034a9f5d32143bf590c8e59342d1acdb4c3cefe18b5e6570eb74a4fc7" }, "downloads": -1, "filename": "zabbix2jira-0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "04157a42b8411682a0998718b55ace52", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10291, "upload_time": "2017-03-14T22:37:47", "url": "https://files.pythonhosted.org/packages/6a/98/27bb350990c9799e4129242b71e7621dc5581414ff5bbd35beb0abae3631/zabbix2jira-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5fca875c55a4908240d3bf6e3b28a0e4", "sha256": "66a0f5c504b7b40d6c51a1c0f290683961563b332aa5eda719ab570d1b574837" }, "downloads": -1, "filename": "zabbix2jira-0.2.tar.gz", "has_sig": false, "md5_digest": "5fca875c55a4908240d3bf6e3b28a0e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6801, "upload_time": "2017-03-14T22:37:52", "url": "https://files.pythonhosted.org/packages/27/de/8881fe4a6c33aca0e96013d869e8a4d1c1c638999cc51c1ac0ca07684f60/zabbix2jira-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "d0d9621653ac828518a5f2b797168a4d", "sha256": "f2a9c60a23007d62e2b27d99aabccd40bbccaf2e58673dadade71e6883a7e8dd" }, "downloads": -1, "filename": "zabbix2jira-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d0d9621653ac828518a5f2b797168a4d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10324, "upload_time": "2017-03-15T17:00:07", "url": "https://files.pythonhosted.org/packages/f5/be/06a2d26a5fda8e5b09e11799dd01ec8f033e9edb4a2803558001572ce417/zabbix2jira-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e11b6e823b805c9e93183e253c3deb12", "sha256": "da1281acdcaab0dfb238e0098ebce19f1678c128164506a919f2c1e6ee6e428f" }, "downloads": -1, "filename": "zabbix2jira-0.2.1.tar.gz", "has_sig": false, "md5_digest": "e11b6e823b805c9e93183e253c3deb12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6806, "upload_time": "2017-03-15T17:00:11", "url": "https://files.pythonhosted.org/packages/3e/d3/dc3cb17243b38226329dab68e52e27fd5c8ceee2743333432fa846922b4b/zabbix2jira-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d0d9621653ac828518a5f2b797168a4d", "sha256": "f2a9c60a23007d62e2b27d99aabccd40bbccaf2e58673dadade71e6883a7e8dd" }, "downloads": -1, "filename": "zabbix2jira-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d0d9621653ac828518a5f2b797168a4d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10324, "upload_time": "2017-03-15T17:00:07", "url": "https://files.pythonhosted.org/packages/f5/be/06a2d26a5fda8e5b09e11799dd01ec8f033e9edb4a2803558001572ce417/zabbix2jira-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e11b6e823b805c9e93183e253c3deb12", "sha256": "da1281acdcaab0dfb238e0098ebce19f1678c128164506a919f2c1e6ee6e428f" }, "downloads": -1, "filename": "zabbix2jira-0.2.1.tar.gz", "has_sig": false, "md5_digest": "e11b6e823b805c9e93183e253c3deb12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6806, "upload_time": "2017-03-15T17:00:11", "url": "https://files.pythonhosted.org/packages/3e/d3/dc3cb17243b38226329dab68e52e27fd5c8ceee2743333432fa846922b4b/zabbix2jira-0.2.1.tar.gz" } ] }