On Mon, 20 Oct 2003, Don Calfa wrote:
> System Availability: 99.9910%
> Total Uptime: 95d 5h:44m:32s
> Total Downtime: 0d 0h:12m:18s
> Total Reboots: 6
> Mean Time Between Reboots: 15.87 days
> Total Bluescreens: 0
>
> What do I have to install to get the same/more?
halt and reboot will log to /var/log/wtmp when system is stopped.
Also /var/log/wtmp (or equivalent) should contain when your system boots
back up (as recorded, I believe, by init).
Have a look at last(1).
Also, one or more of your logs files should also know when the system was
brought up (via klogd/syslogd).
A simple script could parse these various logs to give the information you
need.
Also, you can have syslogd (-m option) do a "mark" timestamp more
frequently than 20 minutes, so you can use that to know if your system (at
least syslogd) is up.
As for "Total Bluescreens", you can patch xscreensaver so whenever it
gives a BSOD it will log that too :)
Jeremy C. Reed
http://bsd.reedmedia.net/