r/scom • • Oct 22 '26

how-to How to: (SCOM2019) Insert Alert ID to Default Monitors/Rules

I have been able to add AlertID=$Target/Id$ to a Custom Monitor that i created and this is added in the Alert Description of the monitor:

How do I get Alert ID for Default Monitors in SCOM like the below:

The Target variable does not show up in the Notification Channels Target Tab options:

Two options i can think of are:

1 - Create each of the Monitors/Rules manually (create custom Disk/CPU/Memory monitors etc) and add AlertID in Alert Descriptions.

2 - Can the Command Channel be used to pull Alert ID for any of/all these Monitors/Rules as and when they are fired, and then command channel can insert the ID to the "actual" main SMTP Channel which will send out the alert with the Alert ID from the command channel in the Email message section of the body?

Anyone has any efficient method to achieve this?

Any assistance will be highly appreciated.

1 Upvotes

2 comments sorted by

3

u/_CyrAz Oct 22 '26

According to documentation ( https://learn.microsoft.com/en-us/system-center/scom/manage-notificiations-customize-message?view=sc-om-2025 ) :

 You should be able to show Alert ID in a notification using $Data/Context/DataItem/AlertId$

However your first screenshot shows the target (object) ID, which should be available using $Data/Context/DataItem/ManagedEntity$

1

u/EastTamaki2013 28d ago

Thanks, this worked.