[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Re: Real time log monitoring script
- Subject: [cobalt-users] Re: Real time log monitoring script
- From: Bruce Timberlake <bruce@xxxxxxxxxx>
- Date: Wed Sep 24 06:59:01 2003
- Organization: BRTNet.org
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> I try to monitor ftp xferlog file in real time and send a notification
> email if files are up or downloaded. Has anyone a workable script or
> solution?
You could probably hack up poprelayd and make an xferwatchd out of it or
something.
How realtime do you want it to be? If someone starts transferring a lot of
little files, and you're sending an email for each one, that could rapidly
turn into a DoS! :)
Maybe just check the file datestamp every 5-10 minutes, and if it's changed,
grab the contents and send them via an email?