{ "info": { "author": "Kei Iwasaki", "author_email": "me@laughk.org", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "zbx2slack\n================================\n\n.. image:: https://travis-ci.org/laughk/zbx2slack.svg?branch=master\n :target: https://travis-ci.org/laughk/zbx2slack\n\n\nZabbix Alert Notification Script for Slack. by pure python.\n\n- Can use by \"Remote command\". But can't use by \"Media type\".\n- if use by python2.6 (like CentOS6.x), install ``argparse`` module. ex, \n\n .. sourcecode:: sh\n\n $ sudo yum install python-argparse\n\n\nScreenshot\n------------------\n\nNotification example.\n\n.. image:: docs/images/screenshot1.png\n\n\nInstall\n-----------------------\n\nIn your zabbix server,\n\n.. sourcecode:: sh\n\n $ pip install zbx2slack\n\nor you can download directly using ``wget``, ``curl``.\n\n.. sourcecode:: sh\n\n $ wget https://raw.githubusercontent.com/laughk/zbx2slack/master/zbx2slack.py\n $ chmod +x zbx2slack.py\n\n\n(if necessary, use ``sudo``. )\n\n\nset this script your zabbix server.\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nput file and add mode to execute.\n\n\nUsage\n-----------------------\n\nget incoming-webhook url for your slack. from `incoming webhook integration `_.\n\n\nIn the WebUI of your zabbix server.\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n1. [Configureation]\n2. [Action]\n3. Choose 'Trigger' at Event source and Create Action.\n4. if \"Recovery message\" checked, Uncheck the checkbox.\n5. At [Conditions] tab, add ``Trigger value = OK`` to Conditions.\n - ``Trigger value = OK`` and ``Trigger value = PROBLEM`` are in Conditions.\n6. At [Operations] tab, add ``Remote Command``\n - Operation type : Remote Command\n - Targeta list : any host (ex. Current host)\n - Type : Custom script\n - Execute on : Zabbix server\n - Commands:\n\n (if directly download, replace ``zbx2slack`` to ``zbx2slack.py``.)\n\n .. sourcecode:: sh\n\n zbx2slack \\\n --zabbix-server-url \"http://zabbix.example.com/zabbix\" \\\n --slack-botname \"Zabbix Alert\" \\\n --slack-incoming-webhook-url \"https://hooks.slack.com/services/xxxxxxxxx/xxxxxxxxx/....\" \\\n --trigger-id \"{TRIGGER.ID}\" \\\n --trigger-name \"{TRIGGER.NAME}\" \\\n --trigger-status \"{TRIGGER.STATUS}\" \\\n --trigger-severity \"{TRIGGER.SEVERITY}\" \\\n --event-id \"{EVENT.ID}\" \\\n --item \"{HOST.NAME1}|{ITEM.NAME1}|{ITEM.KEY1}|{ITEM.VALUE1}|{ITEM.ID1}\" \\\n --item \"{HOST.NAME2}|{ITEM.NAME2}|{ITEM.KEY2}|{ITEM.VALUE2}|{ITEM.ID2}\" \\\n --item \"{HOST.NAME3}|{ITEM.NAME3}|{ITEM.KEY3}|{ITEM.VALUE3}|{ITEM.ID3}\"\n\n\nLICENSE\n------------------------\n\nMIT\n\n\nAUTHOR\n------------------------\nKei Iwasaki \n\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/laughk/zbx2slack", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "zbx2slack", "package_url": "https://pypi.org/project/zbx2slack/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/zbx2slack/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/laughk/zbx2slack" }, "release_url": "https://pypi.org/project/zbx2slack/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "command-line tool for Zabbix Alert Notification to Slack.", "version": "0.1.1" }, "last_serial": 2126327, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "0ed56adcc84276eb256aacfda4584c80", "sha256": "5929d657676f3fffe0877580927c41973cfc5c049a09cc56727c608099e183e9" }, "downloads": -1, "filename": "zbx2slack-0.0.1.tar.gz", "has_sig": false, "md5_digest": "0ed56adcc84276eb256aacfda4584c80", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3996, "upload_time": "2016-04-09T05:16:48", "url": "https://files.pythonhosted.org/packages/c0/81/a16e5c0b422f32fa25528f160bbd99fe7897ccdaa45f222bc153802006d1/zbx2slack-0.0.1.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "130c9b7ea0b4fab7eeeca08150d37d26", "sha256": "ff3932645c928f7052d95a8a202a0a07a7cdcfe23d043a32e3069082f1e48a2a" }, "downloads": -1, "filename": "zbx2slack-0.1.0.tar.gz", "has_sig": false, "md5_digest": "130c9b7ea0b4fab7eeeca08150d37d26", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4094, "upload_time": "2016-04-09T06:15:01", "url": "https://files.pythonhosted.org/packages/fc/6e/ebb2800d8bdaee05c5a87c2a98533c73bfe42d84ab58099047bbd300ad34/zbx2slack-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "944f3cf6bd9ad599999a5aaa4ce6bc5a", "sha256": "eb980ebcf85c03979e66456e4797d674677c68453cdfce0e53a0222f31ad84f2" }, "downloads": -1, "filename": "zbx2slack-0.1.1.tar.gz", "has_sig": false, "md5_digest": "944f3cf6bd9ad599999a5aaa4ce6bc5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4092, "upload_time": "2016-05-21T03:19:44", "url": "https://files.pythonhosted.org/packages/cf/3b/c859681791c17a0c2114a83ff21c19d4613246a85d1b8b31791ac264149c/zbx2slack-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "944f3cf6bd9ad599999a5aaa4ce6bc5a", "sha256": "eb980ebcf85c03979e66456e4797d674677c68453cdfce0e53a0222f31ad84f2" }, "downloads": -1, "filename": "zbx2slack-0.1.1.tar.gz", "has_sig": false, "md5_digest": "944f3cf6bd9ad599999a5aaa4ce6bc5a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4092, "upload_time": "2016-05-21T03:19:44", "url": "https://files.pythonhosted.org/packages/cf/3b/c859681791c17a0c2114a83ff21c19d4613246a85d1b8b31791ac264149c/zbx2slack-0.1.1.tar.gz" } ] }