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?
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.
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.
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