My MVP Profile

Thursday, December 21, 2006

Day 8 - Application Directory and Queue Monitoring with MOM 2005

Many 3rd party applications, especially legacy apps, often don't write errors to the Application Event Logs to record errors, and almost never employ performance counters to track request queues or error logs. Even with a very comprehensive management pack can be improved upon by employing monitoring of often overlooked queue directories on the file system.

On this 8th day of Christmas, I've posted a quick way to monitor 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.

PARAMETERS:
  • Directory - Target directory to be monitored.
  • MaxFileCount - Count of old files (older than <MaxFileAge> days)
  • MaxFileAge - Max file age in days. Files with a DateLastModified value older than this are considered old / stale.
    This could be converted from days to hours or minutes if necessary.
  • LogPerformanceData - Boolean value - 1 logs file count as performance data, 0 disables this.

WHERE TO GET IT:
Download the Application Directory and Queue Monitoring script at the URL below.

http://www.momresources.org/momscripts/directoryqueue.txt

Comments on "Day 8 - Application Directory and Queue Monitoring with MOM 2005"

 

marcus said ... (10:31 AM) : 

i love your stuff, pete. good work...

 

post a comment links to this post