Skip to main content

supervisor-alert

Version pyversions Downloads License

Are you using Supervisor to manage processes on a server? With supervisor-alert you can receive messages when the state of your processes change. Be the first to know when your services die!

With the default configuration supervisor-alert sends messages over Telegram. For this to work you need to install telegram-send system-wide first. You can also use any shell command to send the notifications.

Installation

Install supervisor-alert on your system:

sudo pip install supervisor-alert

You must install it with Python 2 because Supervisor doesn’t support Python 3 yet. For Supervisor 4+ you may have Python 3 support, if python3 -c 'import supervisor' doesn’t give an error, you should install supervisor-alert with pip3/python3.

Then run:

sudo supervisor-alert --configure

for the default configuration. This will send notifications over Telegram. Read the next section to customize or if you dislike automatic configurations.

Manual Configuration

Create the file /etc/supervisor/conf.d/supervisor_alert.conf as root:

[eventlistener:supervisor_alert]
command=supervisor-alert --telegram
events=PROCESS_STATE_RUNNING,PROCESS_STATE_EXITED,PROCESS_STATE_FATAL
autostart=true
autorestart=true
stdout_logfile=NONE
user=supervisor_alert

This will send the notifications over Telegram, to use something else, for example ntfy, pass in the command:

command=supervisor-alert -c 'ntfy send'

By default the config file at /etc/telegram-send.conf is used for telegram-send, to use a different config, or to pass any other options:

command=supervisor-alert -c 'telegram-send --config /home/user/bunny.conf'

Optionally you can show the hostname before each message with the --show-hostname option:

command=supervisor-alert --telegram --show-hostname

The default configuration will run the event listener as the user supervisor_alert. It is a good practice to isolate services by running them as separate users (and avoiding running them as root). Add the user with:

sudo adduser supervisor_alert --system --no-create-home

Optionally, you can also subscribe to different supervisor events, look at the docs to see on which ones you’d like to be notified.

Finally, load the config and start the event listener:

sudo supervisorctl reread
sudo supervisorctl update

You should now receive your first alert, notifying you that supervisor_alert has started running.

Metadata

Release files for supervisor-alert 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for supervisor-alert 0.6.1
File Size Uploaded Provenance Actions
supervisor-alert-0.6.1.tar.gz 8.4 kB Without provenance Details for supervisor-alert-0.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for supervisor-alert 0.6.1
File Interpreter ABI Platform Actions
supervisor_alert-0.6.1-py2-none-any.whl Python 2 none any Details for supervisor_alert-0.6.1-py2-none-any.whl

Total release size: 15.6 kB

Release files / supervisor-alert-0.6.1.tar.gz

Download URL supervisor-alert-0.6.1.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
acc6477d4ed57ca5c5df4d75beec55c4931fce83fa56ab6a2bf2f9cde96d27f6
BLAKE2b-256 checksum
How to use checksums
4c7a27b32f455927487fc76d2ced939d2894d8501b6360b84cbcd90ffbd78de8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / supervisor_alert-0.6.1-py2-none-any.whl

Download URL supervisor_alert-0.6.1-py2-none-any.whl
Size 7.2 kB
Tags Python 2
SHA-256 checksum
How to use checksums
dec08f1138f7855787a4f4274eef4e8204e80244fd9adafb665a4e1e6b1c7274
BLAKE2b-256 checksum
How to use checksums
340f872bfcfaf983f3234c82225d8a3321d5b284ffefd3a543dd788705af16df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for supervisor-alert 0.6.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page