[svlug] need an uptime birthday script

Daevid Vincent daevid at daevid.com
Fri Jun 19 13:50:34 PDT 2009


Thanks, and call me anal-rententive, but I want it to email at the exact
MINUTE it happens. :)

> -----Original Message-----
> From: svlug-bounces+daevid=daevid.com at lists.svlug.org 
> [mailto:svlug-bounces+daevid=daevid.com at lists.svlug.org] On 
> Behalf Of Robert Hajime Lanning
> Sent: Friday, June 19, 2009 1:45 PM
> To: svlug at lists.svlug.org
> Subject: Re: [svlug] need an uptime birthday script
> 
> Daevid Vincent wrote:
> > I'm about to celebrate a 1 yr uptime here and it got me thinking... 
> > 
> > root at pse02:~# uptime
> >  20:10:01 up 364 days, 23:20,  6 users,  load average: 
> 1.02, 1.01, 1.00
> > 
> > root at pse02:~# echo 'echo "`/usr/bin/uptime`" | mail -s 
> "Happy 1 Year Uptime
> > on PSE02!!" theteam at work.com' | at 20:49
> > 
> > Anyone have or know of a script that I can run on my 
> servers that will email
> > me at intervals, maybe 6 months or 1 year uptime birthdays? 
> I know it's
> > cheeky, but it also let's us (and management know that our 
> servers are solid
> > and something to be proud of the lack of reboots)
> > 
> > The hard part is finding the delta and doing the "time 
> math" from the system
> > current time and the actual uptime of course.
> 
> You could run a script once a day, that parses out the "days" field 
> (when it is there,) and emails when divisible by 365.
> 
> That would be the easiest.
> 
> -- 
> END OF LINE
>        --MCP
> 
> _______________________________________________
> svlug mailing list
> svlug at lists.svlug.org
> http://lists.svlug.org/lists/listinfo/svlug
> 





More information about the svlug mailing list