Generating alert when iles in a folder exceeds a set number

Hey,

Is there an easy way to use automise to monitor a folder and when the number of files exceeds e.g. 50, it sends out an email alert?

cheers,

Bram

Hi Bram,

Typically we see Automise as a script running tool, not so much a monitoring service. With that said however this is possible.

The quickest way to have this work is to schedule a script to run as often as you require. In the script simply fill a fileset with all the files of the directory in question (make sure to pay attention to recursion if you require it). Then simply iterate the list, and increment a counter. If the counter is above 50 email people.

The limitations here would be around timing. The script will run every X seconds, and will take Y to run. Therefore you have a window of X + Y where the directory could pass 50 and will only get to know X + Y seconds later (also with the delay of email). Nevertheless this should work well.