0

How to configure a server reboot alert on email?

How to automate the server reboot alert to my personal Email?

CentOS cron Add a comment
stewart
asked Mar 11 2019
edited Mar 11 2019

Answer

0

Hi Stewart welcome to linuxhelp Forum !

This can be acheived through the cron job

Follow the Below Procedure to configure Cronjob

#crontab -e
@reboot mail -s "$(hostname) was rebooted at: `date +%m.%d.%Y.%H.%M`" youremail@gmail.com
#systemctl start crond.service
Add a comment
linuxhelp
asked Mar 11 2019
Post your Answer