What are some of good ways to automatically monitor the size of files in a directory and send warning email if they get close to a certain limit on a Windows server?
I have a Progress DB installation to keep in check, and last week we hit some problems.
Apparently, the size of extents
has hit 2GB - and Progress won't work past that - we needed to open a new extent.
I'm coming from a Linux environment, so I don't know what are the usual to monitor this in a Windows environment (or monitoring tools whatsoever).
I prefer some generic solution, as I have a mixed environment (Windows 2000, Windows Server 2003, Windows Server 2008 R2).
Thanks in advance for all usable alternative answers.
@JohnGardeniers is completely right in his comment, and though I don't have enough experience with Progress databases to help, in that regard, I've got a few things up my sleeve you could try.
Oh, and just FYI, your life will be much easier if you can replace/ignore/accidentally destroy your Windows 2000 servers, as a lot of products and solutions that work with Server 2008 and above simply will not work on Windows 2000. Having said that
SNMP.
Buy a product to do so for you.
Script something, like in this StackOverflow thread.
Automate use of the reporting tools in the File Services Role to get regular reports and handle things manually.
Another way to look into this problem is, if you have windows 2008 then use power shell and call WMI with domain administrator permission and fetch the information you require and configure mail if size goes out of limit. You can also centrally manage the which servers to look into.
Use Task Schedule to set an interval for the script
Basic google search gave me following link. PowerShell WMI
Hope this will solve your issue.