How can I monitor a directory size?
Some examples of custom monitors are delivered with IPHost Network Monitor installation. One of them is a program that checks the size of a directory. This program (dirsize_kb.exe) is provided with its source code and a batch file to build the executable. To make use of the program, select iphost_dirsize_kb.exe from scripts folder of IPHost Monitor installation path and provide the following parameters:
directory or share name directory to collect size for
-t timeout timeout in seconds
-l domain:username:password credentials to logon in case on needs to access remote server
A typical set of command-line parameters may look like
\\SERVER\share -t 20 -l $AdminDomain:$AdminName:$AdminPassword
Please note that directory size calculation can take quite a large time, so please consider running it not too frequently in order not to overload the system.




