I am running a Debian server and i have setup mailutils to send an email from command line from root@localhost to an external email.I would like to slightly modify it, so it can send emails on every service change. egssh new loginsiptables restartfail2ban restartsystem rebootasterisk restartetcif possible, together with the system information such as CPU, RAM, HDD status.
Send email on every change of service status
cron;email