{ "info": { "author": "Patrick Dreker", "author_email": "patrick@dreker.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Topic :: Communications :: Chat", "Topic :: System :: Monitoring" ], "description": "sensu-handler-rocketchat\n========================\n\nThis is a notification handler for Sensu written in Python. It should\nalso work with Slack and any other Chat service which uses Slack\ncompatible WebHooks.\n\nWhy this and not sensu-plugins-slack?\n-------------------------------------\n\nBecause it was easier to rewrite this in Python than to figure out how\nto quote and escape JSON in ERB in a JSON config file ;-). The orignal\nsensu plugin identifies monitored hosts by their IP address, which is\nnot helpful, when using cloud setups, where IPs may repeat.\n\nUsage\n=====\n\nCreate a handler config for sensu:\n\n.. code:: json\n\n {\n \"handlers\": {\n \"rockethandler\": {\n \"type\": \"pipe\",\n \"filters\": [ \"state_change_only\" ],\n \"command\": \"sensu-handler-rocketchat\"\n }\n }\n }\n\nRefer to the `sensu\ndocumentation `__\nfor more info on how to write this.\n\nThen create the config for this specific handler. The default config\nsection is \u201crockethandler\u201d, but this can be overridden on the\ncommandline, to enable handling multiple channels or Rocketchat servers.\n\n.. code:: json\n\n {\n \"rockethandler\": {\n \"hook_url\": \"https://rocketchat.example.com/hooks/iPw6s7Ykseuhf88kkhf8s4fn0392cnfh83mcfnbsWCzxHTSK\",\n \"nickname\": \"sensu\",\n \"channel\": \"openstack-events\",\n \"dashboard_url\": \"http://10.0.1.4:3000\",\n \"pretext\": \"\"\n }\n }\n\nParameters\n----------\n\n- **hook_url**: (required) Full URL to the WebHook (incoming\n integration) you want to use.\n- **nickname**: (optional) Nickname to use by the handler. Defaults to\n \u201cRocketChat defined\u201d.\n- **channel**: (optional) Channel name to deliver notification to.\n Defaults to \u201cRocketChat defined\u201d.\n- **dashboard_url**: (optional) URL to uchiwa or sensu dashboard (root\n URL). This is used to create a link in the title of every\n notification\n- **pretext**: (optional) Text to prepend to each notification. Can be\n used e.g.\u00a0for highlights.\n\nChanging config namespace\n-------------------------\n\nBy default the handler will use the top-level namespace \u201crockethandler\u201d\nin the sensu config. If you need to notify multiple channels depending\non different events you can define multiple config under different\nnamespaces.\n\nThese configs can then be referenced by using the ``-c namespace``\ncommandline argument\n\nExample:\n~~~~~~~~\n\nrockethandler config\n^^^^^^^^^^^^^^^^^^^^\n\n.. code:: json\n\n {\n \"rockethandler\": {\n \"hook_url\": \"https://rocketchat.example.com/hooks/iPw6s7Ykseuhf88kkhf8s4fn0392cnfh83mcfnbsWCzxHTSK\",\n \"nickname\": \"sensu\",\n \"channel\": \"all-events\",\n \"dashboard_url\": \"http://10.0.1.4:3000\",\n \"pretext\": \"\"\n },\n \"rockethandler_1\": {\n \"hook_url\": \"https://rocketchat.example.com/hooks/iPw6s7Ykseuhf88kkhf8s4fn0392cnfh83mcfnbsWCzxHTSK\",\n \"nickname\": \"sensu-emerg\",\n \"channel\": \"emergency-events\",\n \"dashboard_url\": \"http://10.0.1.4:3000\",\n \"pretext\": \"@all\"\n },\n \"rockethandler_2\": {\n \"hook_url\": \"https://rocketchat.example.com/hooks/iPw6s7Ykseuhf88kkhf8s4fn0392cnfh83mcfnbsWCzxHTSK\",\n \"nickname\": \"sensu-resolve\",\n \"channel\": \"all-events\",\n \"dashboard_url\": \"http://10.0.1.4:3000\",\n \"pretext\": \"**PROBLEM RESOLVED**\"\n }\n }\n\nsensu handler config\n^^^^^^^^^^^^^^^^^^^^\n\n.. code:: json\n\n {\n \"handlers\": {\n \"rocket_handler\": {\n \"type\": \"pipe\",\n \"filters\": [ \"state_change_only\" ],\n \"command\": \"sensu-handler-rocketchat\"\n },\n \"rocket_handler\": {\n \"type\": \"pipe\",\n \"filters\": [ \"state_change_only\", \"emergency\" ],\n \"command\": \"sensu-handler-rocketchat -c rockethandler_1\"\n },\n \"rocket_handler\": {\n \"type\": \"pipe\",\n \"filters\": [ \"state_change_only\", \"resolution\" ],\n \"command\": \"sensu-handler-rocketchat -c rockethandler_2\"\n }\n }\n }\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pdreker/sensu-handler-rocketchat", "keywords": "", "license": "LICENSE", "maintainer": "", "maintainer_email": "", "name": "sensu-handler-rocketchat", "package_url": "https://pypi.org/project/sensu-handler-rocketchat/", "platform": "", "project_url": "https://pypi.org/project/sensu-handler-rocketchat/", "project_urls": { "Homepage": "https://github.com/pdreker/sensu-handler-rocketchat" }, "release_url": "https://pypi.org/project/sensu-handler-rocketchat/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "A sensu plugin to send events to rocketchat.", "version": "0.1.0" }, "last_serial": 3428272, "releases": { "0.0.3": [ { "comment_text": "", "digests": { "md5": "8f7336427d9806b5c4e7f1788e5613af", "sha256": "60898cf1f84f0fb7d395c8407228b019a3f0c5625e7da641c2c16d74149e3680" }, "downloads": -1, "filename": "sensu-handler-rocketchat-0.0.3.tar.gz", "has_sig": false, "md5_digest": "8f7336427d9806b5c4e7f1788e5613af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2220, "upload_time": "2017-12-19T11:53:05", "url": "https://files.pythonhosted.org/packages/37/b3/3fc56adf4587bdc9741ecbad2dd933d7594a703f4f8ce7df16595c70d754/sensu-handler-rocketchat-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "13b3b6f267210e53c888427de2a077c0", "sha256": "a0f81bc77d60ff0b994a6f1b64f5d74f2b4c4a49a06567d0ff099983258e7c99" }, "downloads": -1, "filename": "sensu-handler-rocketchat-0.0.4.tar.gz", "has_sig": false, "md5_digest": "13b3b6f267210e53c888427de2a077c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3754, "upload_time": "2017-12-19T11:56:05", "url": "https://files.pythonhosted.org/packages/de/54/50b768076bd17df2611056cf48f552290a8cb24a9d5e2e2fa2f7bb8b776e/sensu-handler-rocketchat-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "bdc27474b7e3f8b3d5ed29670a201058", "sha256": "e3772c7acce02c3d6367bf01ec75ef7a882460472dbaf91b265b85dc78ef984f" }, "downloads": -1, "filename": "sensu-handler-rocketchat-0.0.5.tar.gz", "has_sig": false, "md5_digest": "bdc27474b7e3f8b3d5ed29670a201058", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3755, "upload_time": "2017-12-19T12:58:04", "url": "https://files.pythonhosted.org/packages/e0/05/9e1866ad620dfb86864c6447dcf443f186d7ffaa3428ca8951883d8a2c3e/sensu-handler-rocketchat-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "0721d9658b22dc6c4a1d9a8df5f92909", "sha256": "f9d538254ddf05d72e8df00a252309fed011c770883244142660eed48f6225b2" }, "downloads": -1, "filename": "sensu-handler-rocketchat-0.0.6.tar.gz", "has_sig": false, "md5_digest": "0721d9658b22dc6c4a1d9a8df5f92909", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3738, "upload_time": "2017-12-19T13:00:15", "url": "https://files.pythonhosted.org/packages/92/3f/692823592fbad91f9c9e2a2891a63773b6088f3a10a0591f2ea6da96bc54/sensu-handler-rocketchat-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "6a8af8dc06188b3a4ce000515fff39dd", "sha256": "0281eeea4f0cf15f97cf4c4945e79ef2ed119530954167d2e60b2d0d996a586c" }, "downloads": -1, "filename": "sensu-handler-rocketchat-0.0.7.tar.gz", "has_sig": false, "md5_digest": "6a8af8dc06188b3a4ce000515fff39dd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3740, "upload_time": "2017-12-19T13:10:46", "url": "https://files.pythonhosted.org/packages/82/18/46b21822dd947691f2d93af1f4a72a3a82c5f7686f5fe69d6dd4a959ba96/sensu-handler-rocketchat-0.0.7.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "894586b9549accc7db9a343e2e84197f", "sha256": "db1e3bd53757eb47c871d780c0efc7ad0635672078990fae09b56af21debaf4b" }, "downloads": -1, "filename": "sensu-handler-rocketchat-0.1.0.tar.gz", "has_sig": false, "md5_digest": "894586b9549accc7db9a343e2e84197f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3739, "upload_time": "2017-12-19T13:20:05", "url": "https://files.pythonhosted.org/packages/70/78/bc1db0843d50f7519acd6bb25b0236e93eaf1d713d19a07af1537aecfd4f/sensu-handler-rocketchat-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "894586b9549accc7db9a343e2e84197f", "sha256": "db1e3bd53757eb47c871d780c0efc7ad0635672078990fae09b56af21debaf4b" }, "downloads": -1, "filename": "sensu-handler-rocketchat-0.1.0.tar.gz", "has_sig": false, "md5_digest": "894586b9549accc7db9a343e2e84197f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3739, "upload_time": "2017-12-19T13:20:05", "url": "https://files.pythonhosted.org/packages/70/78/bc1db0843d50f7519acd6bb25b0236e93eaf1d713d19a07af1537aecfd4f/sensu-handler-rocketchat-0.1.0.tar.gz" } ] }