Monitor files/folder space

Posted on 2010-01-05
Last Modified: 2012-05-08
Hello all experts !

I have a question regarding monitoring the space on one of my ftp servers.

- I have 3 ip-based appliances installed at customer's sites.  These appliances are supposed to collect data from the customer's sites  (in txt files format) and send it to my ftp server
- each appliance will have its own directory on my ftp server
- each appliance will have its own userid and password to logon to my ftp

We are supposed to collect 3 months worth of data and then process it locally for a pilot project

I need to find out a way to know when these appliances are down. For obvious reasons (security) I cannot monitor these appliances with a networking tool via active or passive monitors from within my company's network

I think the only way to find out if these devices are up and running is to monitor ftp transaction (or their folders' space) .  For example if "Appliance A" did not transmit anything in the last X min  (5 min being standard ) then that will trigger an alarm. So actually I want to monitor the space. If the space DID NOT INCREASE in the last 10 min then that will trigger the alarm (e-mail, pager, etc)

Please let me know if you know a tool/scrip/method to accomplish the above

Thank you all for taking the time reading and/or replying to my question

Best regards

Question by:Bibecu
    LVL 31

    Expert Comment

    Rather than monitoring free space, why don't you monitor file count?  If you are pulling files from Appliance A, and no new files are created (count doesn't increase), trigger your alarm mechanism.


    Author Comment

    Yes, you are right, this is another way.  Do you know any good tool to monitor the file count ?
    LVL 31

    Accepted Solution

    Not really, but it would not be hard to come up with a VB script to do a file count, store the number in a text file, then check again in ten minutes to make sure the new file count is larger.  If not, send an email to a predetermined address.  Or have it running constantly and just store the count in a variable if you don't want the hassle of scheduling it every five minutes.  Here is an example of a script that will monitor file creation and deletion:


    Author Closing Comment

    Thanks Justin

    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    Numerous times I have been asked this questions that what is it that makes my machine log on so slow, there have been cases where computers took 23 minute exactly after taking password and getting to the desktop. Interesting thing was the fact th…
    Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now