Display automatic task result with Alert message?
Home  » Operations Manager  » Display automatic task result with Alert message?

Display automatic task result with Alert message?
Posted: Wed, Mar 24, 2010 4:33 PM :: Rank: 0
Author
Points: 1475
Level: System Center Specialist

Right now I have an automatic task that will run to list the top cpu consuming processes for high CPU situations.  However, I'm not seeing the results of that task with the alert.

Can this be configured so the results are included in the alert? 

   Report Abuse
Re: Display automatic task result with Alert message?
Posted: Wed, Mar 24, 2010 5:33 PM :: Rank: 0
Author
Points: 28999
Level: System Center Expert
Do you mean, by results included in the alert, the alert description? Output from these tasks can only be seen in the Health Explorer.



cheers,

Stefan

http://www.code4ward.net
   Report Abuse
RE: Display automatic task result with Alert message?
Posted: Thu, Mar 25, 2010 9:57 AM :: Rank: 0
Author
Points: 65652
Level: System Center Expert

 One ugly kind-of workaround. Add a function to the end of the script used by the diagnostic to log the data in an event in OpsMgr Event Log. Then raise an informational alert on that data and send to recipients of your choice...just a thought. 

   Report Abuse
Re: Display automatic task result with Alert message?
Posted: Thu, Mar 25, 2010 11:05 AM :: Rank: 0
Author
Points: 1475
Level: System Center Specialist
Yes, I was just going to ask if it was possible if a secondary alert can be sent out after the High CPU that contains the "high cpu process" results.
   Report Abuse
RE: Display automatic task result with Alert message?
Posted: Thu, Mar 25, 2010 11:48 AM :: Rank: 0
Author
Points: 65652
Level: System Center Expert

Exactly - save the task result to a variable and pass it to .LogScriptEvent to log to OpsMgr Event Log and trigger with a simple alert rule and you're all set. 

   Report Abuse
RE: Display automatic task result with Alert message?
Posted: Tue, Mar 30, 2010 3:03 AM :: Rank: 0
Author
Points: 65652
Level: System Center Expert

Julius, I wrote the script you were looking for - you can downlad here

Top CPU Processes to OpsMgr Event Log

Desciption: Script finds top processes and logs the list in an Event 5000 in the Operations Manager Event Log. Designed to be used as a   Diagnostic Task so you can pick up the event and generate an    informational alert with list of top CPU processes

 

 

   Report Abuse

Home  » Operations Manager  » Display automatic task result with Alert message?
Top Contributors
Featured Members
Pete Zerger
Points: 65652
Level: System Center Expert
Tommy Gunn
Points: 42868
Level: System Center Expert
Simon Skinner
Points: 40804
Level: System Center Expert
Stefan Koell
Points: 28999
Level: System Center Expert
Andreas Zuckerhut
Points: 27764
Level: System Center Expert