MOMResources.org

The place for all things MOM

Site News

March 28: Updated Announcements

March 5: Updated Announcements

February 27: Updated OpsMgr 2007 How-to's

February 20: Updated Announcements

January 31: Updated Announcements

Links:

Site Admins

File/Folder Monitoring

Below you will find a listing of great MOM scripts courtesy of MOMResources.org. Many of these scripts are fully functional with no user customization required. This archive contains both scripts and Transact SQL queries for use with MOM 2005 to enhance and extend out-of-the-box functionality. The hyperlink in the script column will present the source code in a new window, and the description column provides guidance on function and purpose. Double-click on column headers below to sort entries by date or alphabetically.

Date Added Script Description / Instructions for Use
12/18/06 File Count / Directory Monitor This script, which will raise an event when the file count any one of multiple directories breaches a user defined threshold. was originally employed to keep an eye on file counts in IIS log directories on servers with many website.
12/21/06 Application Directory and Queue Monitoring Monitors a directory on the file system for file age and file count in a user-defined target directory. It optionally creates a performance object to chart file count in this directory.You can adjust the file age and count to suit the application you are monitoring. The script raises a Warning Event in MOM. You can create an event rule to raise an Alert in MOM. See additional details HERE.
4/24/06 Check File Count Age Size Can check file count, age, size on local or UNC path. Requires the following script parameters. Root_Dir, File_Spec, Max_File_Count, File_Age, Max_File_Size.
4/24/06 Check for File Existence Checks for existence of specified file.
4/24/06 Text File Search Script Script reads a specified text file and determines if a specified search text is in the file. If it is, this script generates an event in MOM.