Mads Rasmussen wrote:
> 
> I would like to log the uptime of our systems, just I cannot see into the
> future to expect when a system crashes so an aproach that logs, like 1 time
> per hour should do it.
> 
> I guess you could run a crontab script that just cat's the uptime output into
> /var/log/uptime
> 
> This however will be overwritten when the system comes back up, so I thought
> it would be better to log in two files a live one and a backup one.

Just append the file 'uptime >>/var/log/uptime'

Use logrotate to limit the size and keep backup
logs. Then you can check uptime and find reboots.

Or use rup on another machine to monitor.

        -Thomas



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to