Email on reboot

Felipe Figueiredo philsf79 at gmail.com
Tue Aug 14 21:25:59 UTC 2007


Bart,

On 8/14/07, Bart Silverstrim <bsilver at chrononomicon.com> wrote:
> Is there a best-practices recommended way to have a 7.04 ubuntu server
> email a specific address if it reboots or is restarted?  Emailing output
> from dmesg or a system log at boot time would be nice, but as long as
> there was some notification of the restart with a timestamp it would be
> useful.  I know there's fifty ways to do it, but I wondered what people
> found to be the easiest and "best" way to do it.

Take a look in the logcheck package. One of the things it does, is
send an email alarm on reboot. The IDS 'tiger' also mails you when it
detects the /var/run files change, which always occur upon reboot
(also whenever you restart a service).

regards
FF




More information about the ubuntu-users mailing list