CPU/Memory Monitors: Include Top Processes in Alert Description

Published Mar 12 2019 05:12 PM 2,133 Views
Senior Member

First published on TECHNET on Aug 29, 2014

 

Here is a Management Pack that I wrote for a customer a while back.  The requirement was to take the alerting for CPU Utilization and Available Memory from the Windows Server Management Pack and add the top 5 processes consuming CPU/Memory to the Alert Description.

 

The MP that I wrote for this is attached

    • The MP contains replicas of the “Available Megabytes of Memory” and “Total CPU Utilization Percentage” Monitors from the Windows Server MPs
    • The only change is a modification to the VBScript to get the Top 5 processes and include them in the Property Bag and Alert.
    • The memory monitor will show the top 5 instances of Process\Private Bytes
    • The CPU monitor will show the top 5 instances of Process\% Processor Time
    • The MP has separate Monitors for Server 2003, 2008, 2008 R2 and 2012

 

Screenshots of the alerts are below:

 

 

 

 

2 Comments
%3CLINGO-SUB%20id%3D%22lingo-sub-2624367%22%20slang%3D%22en-US%22%3ERe%3A%20CPU%2FMemory%20Monitors%3A%20Include%20Top%20Processes%20in%20Alert%20Description%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2624367%22%20slang%3D%22en-US%22%3E%3CP%3ELink%20is%20dead.%20Can%20you%20reupload%20it%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-365762%22%20slang%3D%22en-US%22%3ECPU%2FMemory%20Monitors%3A%20Include%20Top%20Processes%20in%20Alert%20Description%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-365762%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSTRONG%3E%20First%20published%20on%20TECHNET%20on%20Aug%2029%2C%202014%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EHere%20is%20a%20Management%20Pack%20that%20I%20wrote%20for%20a%20customer%20a%20while%20back.%26nbsp%3B%20The%20requirement%20was%20to%20take%20the%20alerting%20for%20CPU%20Utilization%20and%20Available%20Memory%20from%20the%20Windows%20Server%20Management%20Pack%20and%20add%20the%20top%205%20processes%20consuming%20CPU%2FMemory%20to%20the%20Alert%20Description.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20MP%20that%20I%20wrote%20for%20this%20is%20attached%3C%2FP%3E%0A%3CUL%3E%0A%3CUL%3E%0A%3CLI%3EThe%20MP%20contains%20replicas%20of%20the%20%E2%80%9CAvailable%20Megabytes%20of%20Memory%E2%80%9D%20and%20%E2%80%9CTotal%20CPU%20Utilization%20Percentage%E2%80%9D%20Monitors%20from%20the%20Windows%20Server%20MPs%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FUL%3E%0A%3CUL%3E%0A%3CUL%3E%0A%3CLI%3EThe%20only%20change%20is%20a%20modification%20to%20the%20VBScript%20to%20get%20the%20Top%205%20processes%20and%20include%20them%20in%20the%20Property%20Bag%20and%20Alert.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FUL%3E%0A%3CUL%3E%0A%3CUL%3E%0A%3CLI%3EThe%20memory%20monitor%20will%20show%20the%20top%205%20instances%20of%20Process%5CPrivate%20Bytes%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FUL%3E%0A%3CUL%3E%0A%3CUL%3E%0A%3CLI%3EThe%20CPU%20monitor%20will%20show%20the%20top%205%20instances%20of%20Process%5C%25%20Processor%20Time%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FUL%3E%0A%3CUL%3E%0A%3CUL%3E%0A%3CLI%3EThe%20MP%20has%20separate%20Monitors%20for%20Server%202003%2C%202008%2C%202008%20R2%20and%202012%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EScreenshots%20of%20the%20alerts%20are%20below%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20816px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F86951i63512E9DF9828578%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20823px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F86952i5BDAAE9C854C3463%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-365762%22%20slang%3D%22en-US%22%3E%3CP%3EFirst%20published%20on%20TECHNET%20on%20Aug%2029%2C%202014%20Here%20is%20a%20Management%20Pack%20that%20I%20wrote%20for%20a%20customer%20a%20while%20back.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-365762%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EJimmyHarper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2654180%22%20slang%3D%22en-US%22%3ERe%3A%20CPU%2FMemory%20Monitors%3A%20Include%20Top%20Processes%20in%20Alert%20Description%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2654180%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F485447%22%20target%3D%22_blank%22%3E%40Igor888888%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3EDone%20%3A)%3C%2Fimg%3E%20Thank%20you%20for%20letting%20me%20know!%3C%2FP%3E%3C%2FLINGO-BODY%3E
Co-Authors
Version history
Last update:
‎Aug 16 2021 03:32 PM
Updated by: