Python script for Linux to watch various params of a web server and email reports.
Features -
- Logging
- Email reports in case of any alerts
- Configure params to monitor via a configuration file
- Monitor CPU usage of web server
- Monitor disk usage of web server
- Monitor various services (such as Apache, MySQL etc.) with ability to restart
- Ability to set max no. of alerts per day to prevent flooding email inbox
- TCP call to webservice or host with port
- HTTP call for website availability check
Note:
- Works only on Linux (Use shell calls to disk usage 'df' and 'ps -A' etc.)
- Sendmail needs to be configured for correct email send functionality
- For correct functioning add a cron job which executes the script approx. every 5 mins depending on frequency