> I'm searching for a ressource where I can get scripts (perl, shell or
> whatever) fot logfile rotation and monitoring of the server (discspace). I
> think there should be somewhere a script that is configurable to gz or tar
> files and directories and rm them when they are too old.
There exists a program "newsyslog" by Ted T'so. It's at least
standard with the FreeBSD core system (the only OS I've got at
hand right now and here).
Quote:> And a script that
> informs me when the disks are at their (configured) limit.
I think you'd have to write that yourself. The actual limits could be
configured, but I think there's at least half a dozen ways how to
"inform" you about overflowing data.
I've once given this as an exercise to some people I was tutoring
about system administration. The whole thing is fairly easy to do
with a shell script if you can pin down what exactly you're after.
 Immediately coming to mind:
- Send a message to my pager/cell phone
- Send me e-mail
- Notify me via write
- Notify everyone via wall, rwall
- Produce a "daily report" e-mail
- Notify some monitor tool on my desktop machine
- Sound an alarm on /dev/audio somewhere
Benedikt Stockebrand, Dipl. Inform. http://www.ruhr.de/home/devnull
Unix- und Netzwerkmanager auf Unix and network manager
der Suche nach einer neuen Stelle. looking for a new job.