From owner-freebsd-questions@FreeBSD.ORG Thu May 28 03:39:29 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8A66106566B for ; Thu, 28 May 2009 03:39:29 +0000 (UTC) (envelope-from apseudoutopia@gmail.com) Received: from mail-ew0-f212.google.com (mail-ew0-f212.google.com [209.85.219.212]) by mx1.freebsd.org (Postfix) with ESMTP id 697C08FC1B for ; Thu, 28 May 2009 03:39:28 +0000 (UTC) (envelope-from apseudoutopia@gmail.com) Received: by ewy8 with SMTP id 8so1532238ewy.43 for ; Wed, 27 May 2009 20:39:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=qoHZXE9uu1snrTcEFVB6KUfbdge2fxtBTn5CAN1i23E=; b=gM/3TzSlkiR1IO3H+aFH28qmV35GAIx0VmCWTvbYAw00RZTgE0sLa9QzmQqTEJCYnE zOBeA89Y0wlGFwkw4//z0G1kIIUlt+fyp7Mg9IsGqKxXvBFdrq2o4C0FFkpDbCe/IVEj EmBD9zqlZnMm5APb7lL0NIPrkdgBMObzzicco= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=vbIky/Y6YwT3u5F07/CZSKmylP85iGcDgtSrlnXy1TmXDgIhj6l9nK+hFy+la/8Fkq /wB5k1cWriBp51zonsBiGXntV1JsImqsGxDTZ9uIUPqnkaF6ma8o0QTuufAa7IrGw8Ff nSXDuYxjr7xsnIE8//LLHTKal0IJoNV6rtMkg= MIME-Version: 1.0 Received: by 10.216.39.80 with SMTP id c58mr302795web.122.1243481968120; Wed, 27 May 2009 20:39:28 -0700 (PDT) In-Reply-To: <20090527210037.315D9BEC7@kev.msw.wpafb.af.mil> References: <20090527210037.315D9BEC7@kev.msw.wpafb.af.mil> From: APseudoUtopia Date: Wed, 27 May 2009 23:39:08 -0400 Message-ID: <27ade5280905272039u1d116513seedfd86dee4ed75@mail.gmail.com> To: vogelke+unix@pobox.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Another uptime story X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 May 2009 03:39:30 -0000 On Wed, May 27, 2009 at 5:00 PM, Karl Vogel wrote: >>> On Wed, 27 May 2009 09:02:08 -0500, >>> Andrew Gould said: > > A> You could write a script that sends uptime output and a start/stop > A> flag to a database when the system starts and stops. =C2=A0This wouldn= 't > A> account for improper shutdowns, although you could tell when a "stop" > A> date/time was missing. > > =C2=A0 I have a script which runs fping on a bunch of servers and writes > =C2=A0 a timestamp for any host that answers. =C2=A0It's run every minute= from > =C2=A0 cron on our loghost. =C2=A0Another script watches the results and = sends > =C2=A0 me an IM if any of my boxes fails to respond for 3 minutes. > > =C2=A0 I can put up a tarball if anyone's interested. > I'd be interested in a set of scripts like that. I appreciate it.