From owner-freebsd-questions@FreeBSD.ORG Wed May 27 21:08:37 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 554961065670 for ; Wed, 27 May 2009 21:08:37 +0000 (UTC) (envelope-from vogelke@hcst.com) Received: from beta.hcst.com (beta.hcst.com [192.52.183.241]) by mx1.freebsd.org (Postfix) with ESMTP id F0E888FC0C for ; Wed, 27 May 2009 21:08:36 +0000 (UTC) (envelope-from vogelke@hcst.com) Received: from beta.hcst.com (localhost [127.0.0.1]) by beta.hcst.com (8.13.8/8.13.8/Debian-3) with ESMTP id n4RL8ZrK030104 for ; Wed, 27 May 2009 17:08:35 -0400 Received: (from vogelke@localhost) by beta.hcst.com (8.13.8/8.13.8/Submit) id n4RL8Z3T030103; Wed, 27 May 2009 17:08:35 -0400 Received: by kev.msw.wpafb.af.mil (Postfix, from userid 32768) id 315D9BEC7; Wed, 27 May 2009 17:00:37 -0400 (EDT) To: freebsd-questions@freebsd.org In-reply-to: (message from Andrew Gould on Wed, 27 May 2009 09:02:08 -0500) Organization: Oasis Systems Inc. X-Disclaimer: I don't speak for the USAF or Oasis. X-GPG-ID: 1024D/711752A0 2006-06-27 Karl Vogel X-GPG-Fingerprint: 56EB 6DBF 4224 C953 F417 CC99 4C7C 7D46 7117 52A0 Message-Id: <20090527210037.315D9BEC7@kev.msw.wpafb.af.mil> Date: Wed, 27 May 2009 17:00:37 -0400 (EDT) From: vogelke+unix@pobox.com (Karl Vogel) Subject: Re: Another uptime story X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vogelke+unix@pobox.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 May 2009 21:08:37 -0000 >> 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. This wouldn't A> account for improper shutdowns, although you could tell when a "stop" A> date/time was missing. I have a script which runs fping on a bunch of servers and writes a timestamp for any host that answers. It's run every minute from cron on our loghost. Another script watches the results and sends me an IM if any of my boxes fails to respond for 3 minutes. I can put up a tarball if anyone's interested. -- Karl Vogel I don't speak for the USAF or my company When buying and selling are controlled by legislation, the first things to be bought and sold are legislators. --P.J. O'Rourke, "Parliament of Whores"