Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Action Emails
PostPosted: Sun Dec 14, 2008 9:27 pm 
Offline
Newbie

Joined: Sun Dec 14, 2008 8:21 pm
Posts: 4
I would find it very convenient to be emailed everytime my linode was shutdown, rebooted, or booted with the time, also allowing me to choose a time zone. The reason I am requesting this is because I have multiple staff members with accounts that manage the linodes and they don't always record the actions.

:)


Top
   
 Post subject:
PostPosted: Sun Dec 14, 2008 11:43 pm 
Offline
Junior Member

Joined: Fri Sep 12, 2003 10:10 am
Posts: 33
have you given any thought to a cron job? using a time of "@reboot" will run every time it's booted.


Top
   
 Post subject:
PostPosted: Mon Dec 15, 2008 4:46 am 
Offline
Senior Member

Joined: Fri Sep 12, 2008 3:17 am
Posts: 166
Website: http://independentchaos.com
aaron wrote:
have you given any thought to a cron job? using a time of "@reboot" will run every time it's booted.

very nifty, I didn't know that. Thanks :)


Top
   
 Post subject: Re: Action Emails
PostPosted: Mon Dec 15, 2008 12:12 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
sdollins wrote:
I would find it very convenient to be emailed everytime my linode was shutdown, rebooted, or booted with the time, also allowing me to choose a time zone. The reason I am requesting this is because I have multiple staff members with accounts that manage the linodes and they don't always record the actions.

:)


What works for me, to know of reboots (anyway), is to add
Code:
echo `/bin/hostname` rebooted at `/bin/date` | /bin/mail my_cell_phone_email

to the end of /etc/rc.local

That way I get paged on reboot.

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Wed Dec 17, 2008 3:56 am 
Offline
Newbie

Joined: Sun Dec 14, 2008 8:21 pm
Posts: 4
I don't think that alerts you if a "hard reboot" is done. You cannot reboot via your Linode's shell, it will simply shut down the vps, anyways.


Top
   
 Post subject:
PostPosted: Wed Dec 17, 2008 11:44 am 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
My 1 liner alert code doesn't alert on a _shutdown_, it alerts on successful startup. So it doesn't care how the reboot occured (hard/soft/crash/whatever). If you shutdown the VPS and never restart it then you won't know. If the boot sequence hangs, you'll never know. But once the machine is running again _then_ you know ;-)

What do you want from a 1-liner :-)

_________________
Rgds

Stephen

(Linux user since kernel version 0.11)


Top
   
 Post subject:
PostPosted: Wed Dec 17, 2008 2:28 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
sweh wrote:
So it doesn't care how the reboot occured (hard/soft/crash/whatever).


If your server is in the middle of a crash, it probably doesn't have the time or resources to fire off an email...

On the other hand, Lassie will reboot your linode automatically after it shuts down for whatever reason, so in most case you'll get a notification once the reboot is complete.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group