Skip to main content

supervisor-alert

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!

To send messages on Telegram you need to install and set up telegram-send first. You can also use any shell command to send the notifications.

Installation

Install supervisor-alert on your system:

sudo pip install supervisor-alert

Then 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
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'

This 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.2.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.2.1
File Size Uploaded
supervisor-alert-0.2.1.tar.gz 3.2 kB Details

Built distribution (wheel)

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

Total release size: 8.7 kB

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

Download URL supervisor-alert-0.2.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ad74c05432017ab4ac7bf2872beb84076989643f5ca09c5eb532a1f46d9ef6e2
BLAKE2b-256 checksum
How to use checksums
375da19097dae9a80d8cce79ff45a5063f0967db3b62c48549bae3a646101d81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

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

Download URL supervisor_alert-0.2.1-py2-none-any.whl
Size 5.5 kB
Tags Python 2
SHA-256 checksum
How to use checksums
4fa8cc838b746b76a34ad5be732b40bc67a1f463dc91e1974a9746eeacde0b42
BLAKE2b-256 checksum
How to use checksums
cc625621e17d627ced3429c00faf7d5baf79d5f5e398c4c54da285f40b0ef298
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.6.2

2 release files

0.6.1

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

This release

0.2.1 This release

2 release files

0.2

2 release files

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