Menu Close

Alert Notification Subscription Variables, and linking that to the console, database, and SDK

Quick download:  image

Attached you will find a spreadsheet, with all the possible alert notification subscription variables that I am aware of.  In this spreadsheet, I link these to the same values in the Alert table of the DB, the alert view of the DB, the Console alert view, the SDK (Get-Alert), and lastly the new R2 Connector Key pairs.

My thought was to better understand each data property type of an alert, and what you can managed, from each area.  Hope this is beneficial.

Most of these are listed at my other blog post on alert description and notification variables:  https://kevinholman.com/2007/12/12/adding-custom-information-to-alert-descriptions-and-notifications/

 

Here is a sample shot of the spreadsheet tool:

image

3 Comments

  1. Meni

    Hi Kevin

    Thank you.
    I want to send only the hostname in alert name, what variable should I use?

    For example for this server name exc2.domain.lan when i use /ManagedEntityDisplayName$ the result is
    exc2.domain.lan\cluster service and I want get just the hostname like exc2 or exc2.domain.lan without the \cluster service.

    this is what i am using now:

    send -b https://skaheladi.com -t 123 -k 123 “AlertSource=$Data[Default=’Not Present’]/Context/DataItem/ManagedEntityPath$\$Data[Default=’Not Present’]/Context/DataItem/ManagedEntityDisplayName$” “AlertName=$Data[Default=’Not Present’]/Context/DataItem/AlertName$” “AlertDescription=$Data[Default=’Not Present’]/Context/DataItem/AlertDescription$” “AlertSeverity=$Data[Default=’Not Present’]/Context/DataItem/Severity$” “AlertPriority=$Data[Default=’Not Present’]/Context/DataItem/Priority$” “AlertCategory=$Data[Default=’Not Present’]/Context/DataItem/Category$” “AlertResolutionState=$Data[Default=’Not Present’]/Context/DataItem/ResolutionStateName$” “AlertOwner=$Data[Default=’Not Present’]/Context/DataItem/AlertOwner$” “AlertResolvedBy=$Data[Default=’Not Present’]/Context/DataItem/ResolvedBy$” “AlertRaisedTime=$Data[Default=’Not Present’]/Context/DataItem/TimeRaisedLocal$” “AlertResolutionTime=$Data[Default=’Not Present’]/Context/DataItem/ResolutionStateLastModifiedLocal$” “AlertLastModifiedTime=$Data[Default=’Not Present’]/Context/DataItem/LastModifiedLocal$” “AlertLastModifiedBy=$Data[Default=’Not Present’]/Context/DataItem/LastModifiedBy$” “AlertId=$Data/Context/DataItem/AlertId$”

    thanks

Leave a Reply

Your email address will not be published. Required fields are marked *