From owner-freebsd-questions@FreeBSD.ORG Mon Jan 22 03:05:36 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 91FCB16A402 for ; Mon, 22 Jan 2007 03:05:36 +0000 (UTC) (envelope-from j65nko@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by mx1.freebsd.org (Postfix) with ESMTP id 2E13813C46A for ; Mon, 22 Jan 2007 03:05:35 +0000 (UTC) (envelope-from j65nko@gmail.com) Received: by nf-out-0910.google.com with SMTP id m19so355318nfc for ; Sun, 21 Jan 2007 19:05:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MvJW+ElqxAbmyITVyKcifryhAARFQcMdfgU5oeva1gFvKnymO/MlE6D5fS32b43MHVSuxJ2wqov9Lc0YkaN4bs10OYlwz2UfOU7imty1XUIyDzUetW6jjM6sqHV44Xxr0n5JrxW4HkjPZFHQO2/l7YZdl1giv1Jle75pW7RuAZg= Received: by 10.48.14.4 with SMTP id 4mr5962704nfn.1169433496688; Sun, 21 Jan 2007 18:38:16 -0800 (PST) Received: by 10.78.156.15 with HTTP; Sun, 21 Jan 2007 18:38:16 -0800 (PST) Message-ID: <19861fba0701211838i213354efr83fca4443b2d6c8d@mail.gmail.com> Date: Mon, 22 Jan 2007 03:38:16 +0100 From: J65nko To: "Kelly Jones" In-Reply-To: <26face530701211201j6dbfb184jfa158c8b6fddc114@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <26face530701211201j6dbfb184jfa158c8b6fddc114@mail.gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Single command that outputs "system status"? 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: Mon, 22 Jan 2007 03:05:36 -0000 On 1/21/07, Kelly Jones wrote: > It's easy to write a shell script that dumps/mails the output of > several "status" commands (eg, "df -k", "crontab -l", "ps -aux -www", > "top -n -d 1 infinity", "w -d", "mailq -v", "netstat -a", "vmstat", > etc) every hour, but I'm wondering if I'm re-inventing the wheel. > > Is there a FreeBSD command that reports "system status", either an > existing shell script that does the above, or something that talks to > the kernel at a lower level and reports all relevant values? > > I know about /etc/periodic/*/*status*, but this seems both excessive > in places (I don't really need rejected email info, for example) and > incomplete (I don't think it gives me all the information the commands > above do). > > I also know about mrtg, but that seems more geared toward graphing > and storing historical information and seems limited as well. > > I realize this question is ambiguous. I guess what I'm really asking > is: is there a FreeBSD tool *designed* to report system status on a > regular basis, that I could use as the basis of an hourly reporting > system, even if I had to add/tweak some stuff myself. > Although may be not exactly what you want http://www.bsdforums.org/forums/showthread.php?t=31072 It could be a start ;)