Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 May 2009 16:10:34 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Andrew Gould <andrewlylegould@gmail.com>
Cc:        Glen Barber <glen.j.barber@gmail.com>, Polytropon <freebsd@edvax.de>, Steve Bertrand <steve@ibctech.ca>, utisoft@gmail.com, "freebsd-questions@freebsd.org Questions -" <freebsd-questions@freebsd.org>
Subject:   Re: Another uptime story
Message-ID:  <20090527161034.47790ae2.freebsd@edvax.de>
In-Reply-To: <d356c5630905270702q31e06a0j31b48f138ed9b3b0@mail.gmail.com>
References:  <4A1CB002.9070904@ibctech.ca> <20090527052335.7a71bfc6.freebsd@edvax.de> <4ad871310905262234s35857487xbf631bea45a018e@mail.gmail.com> <b79ecaef0905270645i500318efn9e71cff1ea58faf5@mail.gmail.com> <d356c5630905270702q31e06a0j31b48f138ed9b3b0@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 27 May 2009 09:02:08 -0500, Andrew Gould <andrewlylegould@gmail.com> wrote:
> You could write a script that sends uptime output and a start/stop flag to a
> database when the system starts and stops.  This wouldn't account for
> improper shutdowns, although you could tell when a "stop" date/time was
> missing.

I've used a similar (but more easily designed) approach to
have a file /var/log/activity.log. This, of course, doesn't apply
for servers that run day by day, but for systems that are
powered off when not in use. Simple thing, just a formatted
date and uptime into a text file, run by rc.local and rc.shutdown.local.

My "best time" with FreeBSD 7 system:

	2008-12-14 00:27:42 - 2008-12-20 03:41:44 -  6 days,  3:14, 0 users

And FreeBSD 5:

	2007-02-23 04:54:07 - 2007-03-06 02:14:46 -  10 days, 21:21, 1 user

That's not the majority of entries, most of them are just a
few hours. Keep in mind that it is NOT a server - these lines
would look terrible if it would. :-)



> If you also  documented the installation date/time of various components,
> you could also track their lives separately.

At least their live IN USE. In many cases, it's no problem to use
a hard disk or a optical disc drive longer than the period it is
utilized in the server - it doesn't break when you switch to a
newer system. Erm sorry, I forgot the truth: It will of course
break before this point in time; in fact, it will break when you
need it most. :-)





-- 
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090527161034.47790ae2.freebsd>