Single command that outputs "system status"?

Kelly Jones kelly.terry.jones at gmail.com
Sun Jan 21 20:01:57 UTC 2007


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.


More information about the freebsd-questions mailing list