Quantcast
Channel: SCOM – Remko Weijnen's Blog (Remko's Blog)
Viewing all articles
Browse latest Browse all 8

Set alert parameters with Visual Studio Authoring Extensions

$
0
0

System Center Operations Manager LogoIn a SCOM Management Pack Custom Properties can be used for Alert Description and Notification as described in this blog by Kevin Holman.

In my case I wanted to add the Display Name and the Performance Counter Value in a Performance Threshold Monitor. In XML it would look this this:


          Error
          true
          Normal
          MatchMonitorHealth
          
            $Target/Host/Property[Type="System!System.Entity"]/DisplayName$
            $Data/Context/Value$
          
        

But how to add these parameters when using the System Center 2012 Visual Studio Authoring Extensions?

There is no place in the properties to add extra Alert Parameters:

Visual Studio Authoring Extensions | Alert Properties

The solutions is to add the required properties as the last lines in the Alert Description field:

Visual Studio Authoring Extensions | Specify Alert description

If you look into the generated XML (the .mptg.mpx file) you can see that the Alert Parameters have been added:

!-- This file has been automatically generated.
     Any changes made to this file may be lost the next time it is regenerated. -->

  
    
      
        PerformanceHealth
        
          Error
          true
          Normal
          MatchMonitorHealth
          
            $Target/Host/Property[Type="System!System.Entity"]/DisplayName$
            $Data/Context/Value$
          
        
        
          
          
        


Viewing all articles
Browse latest Browse all 8

Latest Images

Trending Articles





Latest Images