in

myITforum.com

David St. Clair at myITforum.com

Alert Descriptions

Alert Descriptions

 

Another handy tip to keep in the back pocket during your install.... The Alert description will accept HTML tags. So that means when you are creating your own MP, Rules or Monitors you can format the description to look how you want. You can add certain lines of HTML code to do things for you (i.e. open a file share via a link using the creds of the user that is working the alert etc).

 

An example of this might be something like (thanks Zolan)...

 

<table border="0"><tr><td align="right"><b>Host Name:</b></td><td> $Data/EventData/DataItem/HostName$ </td></tr><tr><td align="right"><b>Time Stamp:</b></td><td> $Data/EventData/DataItem/TimeStamp$ </td></tr><tr><td align="right"><b>Severity:</b></td><td> $Data/EventData/DataItem/Severity$ </td></tr><tr><td align="right"><b>Priority:</b></td><td> $Data/EventData/DataItem/Priority$ </td></tr><tr><td align="right"><b>Priority Name:</b></td><td> $Data/EventData/DataItem/PriorityName$ </td></tr><tr><td align="right"><b>Facility:</b></td><td> $Data/EventData/DataItem/Facility$ </td></tr><tr><td align="right"><b>Message:</b></td><td> $Data/EventData/DataItem/Message$ </td></tr></table>

 

Which will format your description to be in a table format, with no border and adds justification.

 

One thing to note here is this type formatting will only appear in the Monitoring pane of the Ops Console. When you double click on the alert to open or view it, you will see the raw HTML (as above).


If you are interested in technical classroom training, take a look at our Operations Manager courses at http://www.infrontconsulting.com/events.htm.

Read the complete post at http://david-stclair.spaces.live.com/Blog/cns!112A71B19678F08D!258.entry

Copyright - www.myITforum.com, Inc. - 2010 All Rights reserved.
Powered by Community Server (Commercial Edition), by Telligent Systems