On my personnal server, I used to send myself alerts by email using the handy standard
Hence, I got rid of the postfix package and cumbersome configuration and decided to find an alternative solution. I hesitated between Sentry, a big player in the alerting-as-a-service domain that has the big advantage to be open source (and developped in Python !), and rollbar, for which I opted for because of its simplicty (and by curiosity).
Then, I only had to
pip install rollbar on my server and create a
/usr/local/bin/mail executable file with the following code:
1 2 3 4 5
Et voilà !
All my pre-existing scripts now send alerts to the rollbar web API, I still receive email notifications from this service and I now have an online web dashboard and extra functionnalities like alerts aggregation 🎉