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

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



The files are uploaded every 20 mins or so and I want to run a script on the time stamp and file size. Grabbing the content of the log file and send a mail would be what I am looking for.



-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Bruce Timberlake
Sent: Wednesday, September 24, 2003 2:52 PM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: [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?

_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users