Date: Sun, 21 Jan 2007 13:01:56 -0700 From: "Kelly Jones" <kelly.terry.jones@gmail.com> To: freebsd-questions@freebsd.org Subject: Single command that outputs "system status"? Message-ID: <26face530701211201j6dbfb184jfa158c8b6fddc114@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?26face530701211201j6dbfb184jfa158c8b6fddc114>