When you start understand how MOM 2005 works you will most likely implement new functions and rebuild some default functions. A good way to do this is by script. MOM support both VBscript, Jscript and Perl script. In this guide I will show you what you can do with alert custom fields . The included script will take information from an alert, ask questions against AD and update the custom fields.
You can download the guide here
[…] I have built a script to update alert customfields in Ops Mgr 2007. I have done this for MOM 2005 too, more info here. In MOM 2005 I did it with a couple of rules. In Ops Mgr 2007 I solve it with a schedule task. My first idea was to run it as a command notification, but I ran into a permission issues. You can setup this script as a schedule task, and run it every X minute. It will load Ops Mgr command shell snap-in and then get all new alerts (ResolutionState = 0). The script wíll then get the computername from the alert and run some Active Directory queries based on that computername. The result from these queries will be input in the alert custom fields. Some alerts does not have a netbioscomputername attribute, therefor these alerts will not be updated, for example some Active Directory alerts. […]