Fog Creek Software
g
Discussion Board




Alerts Management On FTP Site


I'm looking for a FreeWare/ShareWare which allows you do to the following :

*1* Allows you to set up a list of FTP Servers (Unix/Win) :
      "IP Address"; "User Name" ; "Password" ; "Minimum Kb"
   
The program should do the following :

- Connect every day to to the list of FTP Server
  defined (In *1*) and get the availble size
  on the FTP Server

Then generale an Alert (by send an e-mail or through a log file)

When "Minimum KB" (define in *1*) < AvailableSizeForFTPServer


I hope the requirements is clear ;-)
(As you may have find out, my mother tongue is not
English)

Basically what I want is to raise an alert when
the Minimum Size that I've defined for a FTP server has been exceeded. This needs to occur dayli ...

FairLight
Saturday, November 1, 2003

On which platform do you plan to run this? I imagine *nix? Some sort of cron job executed daily and using something like perl to connect to a list of ftps should do something similar - getting the free space might be tricky, as I don't know the FTP command spec well, but I imagine it's possible. I haven't heard of a program that does what you wish specifically.

Andrew Cherry
Saturday, November 1, 2003

Using my mind slightly more suggests that "df -k" would tell you the free space... So that should be a good start. Cron job, perl script, df -k... the rest should be easy! If you want it done on windows that shouldn't be too hard either.

Andrew Cherry
Saturday, November 1, 2003

I forgot to mention

this solution must work on a Win Platform

NOT Unix!

FairLight
Saturday, November 1, 2003

Activeperl runs on win32, and you can use the perl NET::FTP module to easily connect to ftp servers and query their contents.

Matthew Lock
Saturday, November 1, 2003

I third... or is it fourth or fifth Perl. Perl is called the "swiss army knife" for a reason.

m
Sunday, November 2, 2003

What, innumerable pieces that you don't know what they do, and then a main knife that doesn't work very well just because it's trying to do too many things? Hehe. Only joking, it's ideal for this kind of small task.

Andrew Cherry
Sunday, November 2, 2003

*  Recent Topics

*  Fog Creek Home