[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Re: Real time log monitoring script



> 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?