glg wrote:
While that would be a nice config option on the control panel, I'll point out that you could easily put something into the rc.local (or equivalent) of your linode to accomplish the same.
Except that doing that only lets you know that your Linode rebooted, not that the host was rebooted. Presumably a non-host-related reboot will require more investigation and troubleshooting to understand what happened. I also think it would be nice to have an option for administrative email notifications - perhaps an option in Linode Manager to get email about jobs for a Linode, since the reboot is performed through insertion of a job.
To the OP, although emails aren't currently generated, this forum seems used consistently. You could monitor an RSS feed for this forum (use the additional RSS options link at the bottom of the forum page to generate an appropriate URL) and watch for your host, then send yourself some mail. That should also catch any notices related to your host that might not actually be a full reboot.
Alternatively, with the new Linode API just released (
http://www.linode.com/api/autodoc.cfm), you could monitor the jobs for your Linode, since reboot jobs are submitted after a host reboot. This approach could also cover any locally initiated reboots, flagging any case where the Linode was rebooted explicitly through a manager job. Or if you just want system initiated reboot jobs such as after a host reboot, I believe they have a unique job date in 1974 (I think I saw a reference elsewhere that it was caker's birthday) that while not guaranteed, should make them easily identifiable.
In the API case, if you didn't want to bother setting up a polling task, you could mix this with glg's idea - just have your Linode check its own jobs once at reboot, to see if it can find a Linode Manager job to explain the restart. Not sure you could use the RSS case for this, since the posting may not yet have been made to the forum by the time the Linode is rebooting.
-- David