Kevin Holman's System Center Blog

Posts in this blog are provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified in the Terms of UseAre you interested in having a dedicated engineer that will be your Mic

Are your Alert Descriptions Ugly?

Are your Alert Descriptions Ugly?

  • Comments 2
  • Likes

When you create an Alert Description in OpsMgr 2007 for alerting rules and monitors.... you might have noticed there is no way to add a line break in between each parameter output you want... so the Alert Description is all jumbled together and hard to read.

 

For instance... I created an Alert generating event rule looking for event 6022 in the OperationsManager event log:

 

image

 

For the alert description available parameters... I go to my previous blog post.... and see what all is available for Windows Event Rules:   http://blogs.technet.com/kevinholman/archive/2007/12/12/adding-custom-information-to-alert-descriptions-and-notifications.aspx

 

I decide I like all of those parameters... so I paste them all into my alert description in the rule:

 

EventDisplayNumber (Event ID):              $Data/EventDisplayNumber$
EventDescription (Description):                $Data/EventDescription$
Publisher Name (Event Source):              $Data/PublisherName$
EventCategory:                                      $Data/EventCategory$
LoggingComputer:                                  $Data/LoggingComputer$
EventLevel:                                            $Data/EventLevel$
Channel:                                               $Data/Channel$
UserName:                                            $Data/UserName$
EventNumber:                                        $Data/EventNumber$

 

They look like this in the UI:

 

image

 

Here is the bad part.... when I get the alert in the console..... they come out like the following:

 

image

 

image

 

Very difficult to read.

Here is a tip....the output of an alert is HTML.  Add <BR /> to your alert descriptions for a clean line break.  I will modify this same rule to add line breaks to make it nicer:

 

image

 

Now - the alerts look MUCH nicer and more readable in the console:

 

image

 

Now - for the downside:

 

If you double click the alert.... the "<BR />" shows up as text, and it will show up in email notifications and across connectors to other systems.  So you have to ask yourself.... do you want clean alerts in the viewing pane of the console.... or less clutter in an email notification?

 

This is how they look in email:

 

image

Comments
  • Kevin, do you have to target "Windows Computer" to get the fields populated?  If I target "windows Operating System" or "Windows Server" I get the (1), (2)..., instead of the values.  Any comments?

    Richard

    richard.barr@stewart.com

  • If you are not populating the fields.... it is typically a problem with the variables you are using are not correct for the type of rule.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
Search Blogs