I'm relatively new to Linux and have a problem with some servers spontaneously rebooting under almost no loads with nothing at all in messages. I suspect hardware but five servers on two different switches has me puzzled.
I'm trying to keep from manually checking for reboots (grepping for 'syslogd startup succeeded') so I wanted to write a small shell script to automatically e-mail me when this event is written to messages.
I'm struggling with the syntax. Should I do this with a cron job? Anyone have any canned scripts they can share?