I'm looking to use this for reporting errors to slack/email using cronjobs as suggested.\
How I think about this is that I set up flags to check for:
- if memory usage is more than 80% send out an alert
- if disk usage is more than 80% send out an alert
How it would work is maybe by having an alert mode eg. python monitor.py --error-mode, and messaging to either slack or email can be set up by piping the output to other tools e.g. slacktee.
Would this be something you're willing to accept as a feature/PR?