-----Original Message-----
From: admin@lists.myITforum.com [mailto:admin@lists.myITforum.com] On Behalf
Of Kevin Holman
Sent: Thursday, July 30, 2009 2:13 PM
To: msmom@lists.myitforum.com
Subject: RE: [msmom] Updating every alert

The most "efficient" way is probably develop a connector, and write a .net
application that runs as a service, making SDK calls, to poll the new alerts
on a frequent schedule (say every 10 seconds), looking for a "match" of a
pre-determined alert ID, and then modifying that alert after it has been
generated. Theoretically - you could change just about any field of an
alert this way - via the SDK. Most commonly things like custom fields,
alert resolution states, ticket ID, Alert owner, etc...

This is most efficient because it runs as a service that maintains a
connection to the SDK service. The same could be done in powershell, but
this is a bit more intensive... as powershell will need to start, load the
powershell process, load the OpsMgr environment DLL's, execute the custom
powershell script, and then tear all this down, every time it executes. For
this reason - a script will be more resource intensive, and would have to
have a polling cycle that is not as frequent.... also - this should likely
be run on some other server than the RMS - due to the resources of spinning
up and tearing down.

You would also need to develop a method to create a "watermark" for the
process - so that we don't do something like "get all open alerts, then
parse". We need a process to "get all new alerts that have come in since
the last time I ran". A good scenario for this would be to set the
resolution state of all alerts that don't "match" to some other custom
resolution state - such as "processed" "123". Then the SDK call can only
examine alerts with a resolution state of "0".... and compare that to a
"match file".


At least.... this seems the best way to go about such a thing. :-)





-----Original Message-----
From: admin@lists.myITforum.com [mailto:admin@lists.myITforum.com] On Behalf
Of Marco Shaw
Sent: Thursday, July 30, 2009 1:00 PM
To: msmom@lists.myitforum.com
Subject: [msmom] Updating every alert

http://social.technet.microsoft.com/Forums/en-US/operationsmanagerextensibil
ity/thread/6c5979bd-7c51-47d0-9632-1b79d775ccc6

What's the most efficient way to update every alert that is created?

If one looks at the above question, it is possible a condition/filter
will need to be set to determine what to write to a custom field.

Is there another solution other than VBScript/PowerShell?

Marco

--
*Microsoft MVP - Windows PowerShell
https://mvp.support.microsoft.com/profile/Marco.Shaw
*Co-Author - Sams Windows PowerShell Unleashed 2nd Edition
*PowerShell Co-Community Director - http://www.powershellcommunity.org
*Blog - http://marcoshaw.blogspot.com


==============
Missed an email? Check out the list archive:
http://myitforum.com/cs2/blogs/momlist/




==============
Missed an email? Check out the list archive:
http://myitforum.com/cs2/blogs/momlist/


Trackbacks

No Trackbacks

Comments

No Comments