Linux Email Notifier Generator

Email Settings

Make sure your system's `mail` command is configured to send emails. You might need to install and configure `postfix` or `sendmail`.

Notification Resources

Disk Usage

CPU Usage

Requires `sysstat` (for `mpstat`). Install with `sudo apt install sysstat` (Debian/Ubuntu) or `sudo yum install sysstat` (RHEL/CentOS).

Memory Usage

Specific Service Status (e.g., Apache2, Nginx, MySQL)

Failed SSH Login Attempts

Requires `grep` and `awk`.

Generated Linux Script

Copy the script, save it as a `.sh` file (e.g., `notifier.sh`), make it executable (`chmod +x notifier.sh`), and then set up a cron job to run it regularly (e.g., `crontab -e`).

Example cron job for running every 5 minutes: `*/5 * * * * /path/to/your/notifier.sh`