Skip to content

Assign Alerts

randomnote1 edited this page Apr 22, 2021 · 1 revision

Assign Alerts

The Assign SCOM Alerts rule executes a powershell script on a timed schedule (default is 5 minutes) which assigns alerts to owners specified in the assign.alert.config file.

Config File

The assign.alert.config file is comprised of Rules and Exceptions.

Rule

Rules specify what owner should be assigned to all alerts in a management pack.

Rule Attributes

  • Name: A logical group which is applied to the rules. This is used strictly for organizational purposes.
  • enabled: Specifies if the rule is processed or not.

Rule Elements

  • managementPackName: The name (not the display name) of the management pack.
  • Owner: The name of the owner to assign to the alert.

Rule Examples

Enabled Rule

Assign all alerts from the Microsoft.SQLServer.Windows.Monitoring management pack to the DBA Team.

<Rule Name="SQLRule" enabled="true">
  <managementPackName>Microsoft.SQLServer.Windows.Monitoring</managementPackName>
  <Owner>DBA Team</Owner>
</Rule>
Disabled Rule

Do not assign all the alerts from the Microsoft.Windows.Server.2016 management pack to the Windows Team.

<Rule Name="WindowsRule" enabled="false">
  <managementPackName>Microsoft.Windows.Server.2016</managementPackName>
  <Owner>Windows Team</Owner>
</Rule>

Exception

Exception Attributes

  • Name: A logical group which is applied to the exceptions. This is used strictly for organizational purposes.
  • enabled: Specifies if the exception is processed or not.

Exception Elements

  • AlertName: The display name of the alert.
  • Owner: The name of the owner to assign to the alert.
  • AlertProperty: The property of the alert to filter on. Default is an empty string.
  • AlertPropertyMatches: A string to compare against the specified property. Supports regular expressions.

Exception Examples

All Alerts

Assign all the Health Service Heartbeat Failure alerts to the Windows Team.

<Exception Name="Health Service Exception" enabled="true">
  <AlertName>Health Service Heartbeat Failure</AlertName>
  <Owner>Windows Team</Owner>
  <AlertProperty/>
  <AlertPropertyMatches/>
</Exception>
Specified Alerts

Assign the Percentage Logical Disk Free Space is low to the App Support team only when the monitoring object name matches D:, E:, or F:.

<Exception Name="ApplicationDrive" enabled="true">
  <AlertName>Percentage Logical Disk Free Space is low</AlertName>
  <Owner>App Support</Owner>
  <AlertProperty>MonitoringObjectName</AlertProperty>
  <AlertPropertyMatches>[DEF]:</AlertPropertyMatches>
</Exception>

Clone this wiki locally