rebootnotify – email alert and log for reboot and shutdown

by brian on September 17, 2010

Ever wondered how long your system was down for while the techs were working on it? Whether your system crashed or was actually shut down?
Or just want to make sure you’re aware of reboots?

This script helps in two ways:

  • It sends an email to a configurable email address when the system is shutdown or rebooted;
  • It permanently logs shutdowns and reboots in /var/log/shutdowns

You can change the email notification target by editing the main script (not the best) or by creating a file in /etc/sysconfig/rebootnotify as in:

echo > /etc/sysconfig/rebootnotify

Install via:

cp rebootnotify /etc/init.d
chmod 755 /etc/init.d/rebootnotify
chkconfig rebootnotify on

Once rebootnotify is installed you will be notified via email on every system reboot.

[download id=”8″]

Previous post:

Next post: