{ "info": { "author": "Rahiel Kasim", "author_email": "rahielkasim@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Operating System :: POSIX", "Programming Language :: Python :: 2.7", "Topic :: System :: Monitoring", "Topic :: System :: Systems Administration" ], "description": "supervisor-alert\n================\n\n|Version| |pyversions| |Downloads| |License|\n\nAre you using `Supervisor `__ to manage\nprocesses on a server? With supervisor-alert you can receive messages\nwhen the state of your processes change. Be the first to know when your\nservices die!\n\nWith the default configuration supervisor-alert sends messages over\nTelegram. For this to work you need to install\n`telegram-send `__ system-wide\nfirst. You can also use any shell command to send the notifications.\n\nInstallation\n============\n\nInstall supervisor-alert on your system:\n\n.. code:: shell\n\n sudo pip install supervisor-alert\n\nYou must install it with Python 2 because Supervisor doesn't support\nPython 3 yet. For Supervisor 4+ you may have Python 3 support, if\n``python3 -c 'import supervisor'`` doesn't give an error, you should\ninstall supervisor-alert with pip3/python3.\n\nThen run:\n\n.. code:: shell\n\n sudo supervisor-alert --configure\n\nfor the default configuration. This will send notifications over\nTelegram. Read the next section to customize or if you dislike automatic\nconfigurations.\n\nManual Configuration\n====================\n\nCreate the file ``/etc/supervisor/conf.d/supervisor_alert.conf`` as\nroot:\n\n.. code:: shell\n\n [eventlistener:supervisor_alert]\n command=supervisor-alert --telegram\n events=PROCESS_STATE_RUNNING,PROCESS_STATE_EXITED,PROCESS_STATE_FATAL\n autostart=true\n autorestart=true\n stdout_logfile=NONE\n user=supervisor_alert\n\nThis will send the notifications over Telegram, to use something else,\nfor example `ntfy `__, pass in the\ncommand:\n\n.. code:: shell\n\n command=supervisor-alert -c 'ntfy send'\n\nBy default the config file at ``/etc/telegram-send.conf`` is used for\ntelegram-send, to use a different config, or to pass any other options:\n\n.. code:: shell\n\n command=supervisor-alert -c 'telegram-send --config /home/user/bunny.conf'\n\nOptionally you can show the hostname before each message with the\n``--show-hostname`` option:\n\n.. code:: shell\n\n command=supervisor-alert --telegram --show-hostname\n\nThe default configuration will run the event listener as the user\n``supervisor_alert``. It is a good practice to isolate services by\nrunning them as separate users (and avoiding running them as root). Add\nthe user with:\n\n.. code:: shell\n\n sudo adduser supervisor_alert --system --no-create-home\n\nOptionally, you can also subscribe to different supervisor events, `look\nat the docs `__ to see\non which ones you'd like to be notified.\n\nFinally, load the config and start the event listener:\n\n.. code:: shell\n\n sudo supervisorctl reread\n sudo supervisorctl update\n\nYou should now receive your first alert, notifying you that\n``supervisor_alert`` has started running.\n\n.. |Version| image:: https://img.shields.io/pypi/v/supervisor-alert.svg\n :target: https://pypi.python.org/pypi/supervisor-alert\n.. |pyversions| image:: https://img.shields.io/pypi/pyversions/supervisor-alert.svg\n :target: https://pypi.python.org/pypi/supervisor-alert\n.. |Downloads| image:: https://www.cpu.re/static/supervisor-alert/downloads.svg\n :target: https://www.cpu.re/static/supervisor-alert/downloads-by-python-version.txt\n.. |License| image:: https://img.shields.io/pypi/l/supervisor-alert.svg\n :target: https://github.com/rahiel/supervisor-alert/blob/master/LICENSE.txt\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/rahiel/supervisor-alert", "keywords": "supervisor alert event listener notify", "license": "Apache-2.0", "maintainer": "", "maintainer_email": "", "name": "supervisor-alert", "package_url": "https://pypi.org/project/supervisor-alert/", "platform": "", "project_url": "https://pypi.org/project/supervisor-alert/", "project_urls": { "Homepage": "https://github.com/rahiel/supervisor-alert" }, "release_url": "https://pypi.org/project/supervisor-alert/0.6.2/", "requires_dist": null, "requires_python": "", "summary": "Receive notifications for Supervisor process events.", "version": "0.6.2" }, "last_serial": 3454422, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "7d2378f923605947efa92acc7040be63", "sha256": "9a509c94314e37a3c1f6373368d9adcf3d13b7cfd8887f4191ef8adc45c45063" }, "downloads": -1, "filename": "supervisor_alert-0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "7d2378f923605947efa92acc7040be63", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5475, "upload_time": "2016-05-18T21:09:53", "url": "https://files.pythonhosted.org/packages/50/ad/dcf8dddb127986dcf0b12ae988a649436c31f38f802abdfa148ca74a824b/supervisor_alert-0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b016aa70828c3bba4de960620c5e9129", "sha256": "c1504929c1c8cb3142220538ada0a6d3ba5f0c1c7d036b693d3d58abe580f9d5" }, "downloads": -1, "filename": "supervisor-alert-0.2.tar.gz", "has_sig": false, "md5_digest": "b016aa70828c3bba4de960620c5e9129", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3244, "upload_time": "2016-05-18T21:09:59", "url": "https://files.pythonhosted.org/packages/16/80/5e8eb16f64d4b7ada2f96864fa3089a9c79785037e9b8163e26bb9374d44/supervisor-alert-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "b5f99c85149d3fdd2297454a3d730ec7", "sha256": "4fa8cc838b746b76a34ad5be732b40bc67a1f463dc91e1974a9746eeacde0b42" }, "downloads": -1, "filename": "supervisor_alert-0.2.1-py2-none-any.whl", "has_sig": false, "md5_digest": "b5f99c85149d3fdd2297454a3d730ec7", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5512, "upload_time": "2016-05-18T21:28:32", "url": "https://files.pythonhosted.org/packages/cc/62/5621e17d627ced3429c00faf7d5baf79d5f5e398c4c54da285f40b0ef298/supervisor_alert-0.2.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "354ddbea3b31b1367bb3643dea79c439", "sha256": "ad74c05432017ab4ac7bf2872beb84076989643f5ca09c5eb532a1f46d9ef6e2" }, "downloads": -1, "filename": "supervisor-alert-0.2.1.tar.gz", "has_sig": false, "md5_digest": "354ddbea3b31b1367bb3643dea79c439", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3182, "upload_time": "2016-05-18T21:28:37", "url": "https://files.pythonhosted.org/packages/37/5d/a19097dae9a80d8cce79ff45a5063f0967db3b62c48549bae3a646101d81/supervisor-alert-0.2.1.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "0d38ee2a627c1a003b656f1fc0551e31", "sha256": "30b64b6bde2ba8f720e4c8b0997abc43be6ea5d88a2f3b81f97c11b499ccdf57" }, "downloads": -1, "filename": "supervisor_alert-0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "0d38ee2a627c1a003b656f1fc0551e31", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6167, "upload_time": "2016-06-04T13:31:01", "url": "https://files.pythonhosted.org/packages/c1/b2/9d8ab76ae4b7f31b5827ee4333ad00842cdf73d7cee05a7f40905849f5f5/supervisor_alert-0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "527657d74099a817121ee9a2caab9578", "sha256": "1e967543251923a27cdae020a6bc252cab69b232640191f5882fd573902fdfc6" }, "downloads": -1, "filename": "supervisor-alert-0.3.tar.gz", "has_sig": false, "md5_digest": "527657d74099a817121ee9a2caab9578", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3664, "upload_time": "2016-06-04T13:31:05", "url": "https://files.pythonhosted.org/packages/db/2a/f8b76e7329331f67d46d4620561a107fba9d3c9d16bb50649c8cdafba1d6/supervisor-alert-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "12599288526d3567c78121643d0fb793", "sha256": "f7787371a97dfb806746b07a5832186255052a6949917537ba70ae1677903273" }, "downloads": -1, "filename": "supervisor_alert-0.4-py2-none-any.whl", "has_sig": false, "md5_digest": "12599288526d3567c78121643d0fb793", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6357, "upload_time": "2017-06-21T10:33:21", "url": "https://files.pythonhosted.org/packages/54/4e/a868b6e65d43ccc7c7264df86b8253e68b0a392bf951884b604a567aced2/supervisor_alert-0.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3d0383d980fd9ad0e12e93cc45e2a4c0", "sha256": "3da38bb1d0df98f91327b8a67997aa9430cabe926a28a5b8453c3822cc22fd64" }, "downloads": -1, "filename": "supervisor-alert-0.4.tar.gz", "has_sig": false, "md5_digest": "3d0383d980fd9ad0e12e93cc45e2a4c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3770, "upload_time": "2017-06-21T10:33:23", "url": "https://files.pythonhosted.org/packages/1b/b6/85ba6a5764eddfc64b2db8d081820bcbe86ebd7fdc656108a903f3d0673e/supervisor-alert-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "63cd69281e82fc50a5bd24acf7462d1c", "sha256": "f18e642fa24cb2af29149d0e8f032869a52a855e4340def35447bf8e53b53426" }, "downloads": -1, "filename": "supervisor_alert-0.5-py2-none-any.whl", "has_sig": false, "md5_digest": "63cd69281e82fc50a5bd24acf7462d1c", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7032, "upload_time": "2017-09-25T13:14:08", "url": "https://files.pythonhosted.org/packages/8f/ea/cb3120e1c7c29417284f82a05df1bdcd105d747ba19a1c2b1de856dba39b/supervisor_alert-0.5-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b7fc122d1d916d194ea805082b993f5f", "sha256": "b86221fedfe0fa9ae554443e697670401e0cb8e2a25e7ff6f69118ac7ea252b8" }, "downloads": -1, "filename": "supervisor-alert-0.5.tar.gz", "has_sig": false, "md5_digest": "b7fc122d1d916d194ea805082b993f5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4167, "upload_time": "2017-09-25T13:14:09", "url": "https://files.pythonhosted.org/packages/06/6a/1f57032fb13922316ca89939c49b67e793d66f54f1c117f08bdee25aeec7/supervisor-alert-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "82765f485a2bec37962bba991aed8231", "sha256": "b7390000f2f5ab555c71c0f5fa02c00b8c13a06dd1d12947947f69f5e5e9bc92" }, "downloads": -1, "filename": "supervisor_alert-0.6-py2-none-any.whl", "has_sig": false, "md5_digest": "82765f485a2bec37962bba991aed8231", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7082, "upload_time": "2017-10-29T12:09:39", "url": "https://files.pythonhosted.org/packages/d9/ae/2a229a1e63113a2a99baf44124a2a10ff7164175aaa4dee6538a2de1bdae/supervisor_alert-0.6-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4d29effad0afbbcfa5d263443b4b88d7", "sha256": "64a48440890e090ff6e056211b986a1862fc9f52d165d5293c880ae953f4a35d" }, "downloads": -1, "filename": "supervisor-alert-0.6.tar.gz", "has_sig": false, "md5_digest": "4d29effad0afbbcfa5d263443b4b88d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4622, "upload_time": "2017-10-29T12:09:39", "url": "https://files.pythonhosted.org/packages/a1/f9/3ce0109c6b25e0041d427de82e4bee475d474cfbf9079e5cec71ba520299/supervisor-alert-0.6.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "ce479d96096ef8db230449f8419fd31f", "sha256": "dec08f1138f7855787a4f4274eef4e8204e80244fd9adafb665a4e1e6b1c7274" }, "downloads": -1, "filename": "supervisor_alert-0.6.1-py2-none-any.whl", "has_sig": false, "md5_digest": "ce479d96096ef8db230449f8419fd31f", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7153, "upload_time": "2018-01-01T13:19:17", "url": "https://files.pythonhosted.org/packages/34/0f/872bfcfaf983f3234c82225d8a3321d5b284ffefd3a543dd788705af16df/supervisor_alert-0.6.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4074893fe9c3a2dd7507d0d42980439b", "sha256": "acc6477d4ed57ca5c5df4d75beec55c4931fce83fa56ab6a2bf2f9cde96d27f6" }, "downloads": -1, "filename": "supervisor-alert-0.6.1.tar.gz", "has_sig": false, "md5_digest": "4074893fe9c3a2dd7507d0d42980439b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8443, "upload_time": "2018-01-01T13:19:18", "url": "https://files.pythonhosted.org/packages/4c/7a/27b32f455927487fc76d2ced939d2894d8501b6360b84cbcd90ffbd78de8/supervisor-alert-0.6.1.tar.gz" } ], "0.6.2": [ { "comment_text": "", "digests": { "md5": "46614bc9c06a6613030306df3532e152", "sha256": "2c0e21a0f266483c6078dec1a6edc90f1e2d3c17ef826efd895cbe7d36fb177f" }, "downloads": -1, "filename": "supervisor_alert-0.6.2-py2-none-any.whl", "has_sig": false, "md5_digest": "46614bc9c06a6613030306df3532e152", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7151, "upload_time": "2018-01-01T13:23:19", "url": "https://files.pythonhosted.org/packages/3f/4d/18b945313b71f629e1aa49e068f491c4db368de43ffcb45c990dbc134d10/supervisor_alert-0.6.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "19af3fb5168c32e54351afa1aa1bf17b", "sha256": "86c0c9f2357905bdc2df465c3ff2313e8a77d44a1b515a349a640e3223aaa831" }, "downloads": -1, "filename": "supervisor-alert-0.6.2.tar.gz", "has_sig": false, "md5_digest": "19af3fb5168c32e54351afa1aa1bf17b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8441, "upload_time": "2018-01-01T13:23:22", "url": "https://files.pythonhosted.org/packages/50/97/5844c8bb46ba22defe5183b7244f354fe51991a33edb378984c4807d6abc/supervisor-alert-0.6.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "46614bc9c06a6613030306df3532e152", "sha256": "2c0e21a0f266483c6078dec1a6edc90f1e2d3c17ef826efd895cbe7d36fb177f" }, "downloads": -1, "filename": "supervisor_alert-0.6.2-py2-none-any.whl", "has_sig": false, "md5_digest": "46614bc9c06a6613030306df3532e152", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7151, "upload_time": "2018-01-01T13:23:19", "url": "https://files.pythonhosted.org/packages/3f/4d/18b945313b71f629e1aa49e068f491c4db368de43ffcb45c990dbc134d10/supervisor_alert-0.6.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "19af3fb5168c32e54351afa1aa1bf17b", "sha256": "86c0c9f2357905bdc2df465c3ff2313e8a77d44a1b515a349a640e3223aaa831" }, "downloads": -1, "filename": "supervisor-alert-0.6.2.tar.gz", "has_sig": false, "md5_digest": "19af3fb5168c32e54351afa1aa1bf17b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8441, "upload_time": "2018-01-01T13:23:22", "url": "https://files.pythonhosted.org/packages/50/97/5844c8bb46ba22defe5183b7244f354fe51991a33edb378984c4807d6abc/supervisor-alert-0.6.2.tar.gz" } ] }