From owner-freebsd-questions@FreeBSD.ORG Sun Jan 21 20:01:57 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 75CEB16A408 for ; Sun, 21 Jan 2007 20:01:57 +0000 (UTC) (envelope-from kelly.terry.jones@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.239]) by mx1.freebsd.org (Postfix) with ESMTP id 3C23C13C442 for ; Sun, 21 Jan 2007 20:01:57 +0000 (UTC) (envelope-from kelly.terry.jones@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so1075706wxc for ; Sun, 21 Jan 2007 12:01:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=fLFdKUV0BNzJ1HB3zdgJE+t5dUancRJQE8tlzzG3XtzEWzYO12kxlmzllwFAKe3HJ7+yrRXgP1nEjYrUnHmQvMMGMWf/podu0q7a0YGx56Cjw85dlK84ixQAiyGeV9Q0pl/7IWDqijUAcxFQM89lOtQk+nWpaxZ3IRzMrTveR1o= Received: by 10.90.52.2 with SMTP id z2mr5351653agz.1169409716991; Sun, 21 Jan 2007 12:01:56 -0800 (PST) Received: by 10.90.53.19 with HTTP; Sun, 21 Jan 2007 12:01:56 -0800 (PST) Message-ID: <26face530701211201j6dbfb184jfa158c8b6fddc114@mail.gmail.com> Date: Sun, 21 Jan 2007 13:01:56 -0700 From: "Kelly Jones" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: 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: Sun, 21 Jan 2007 20:01:57 -0000 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. -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile.