Customizing the Alert Acknowledgement Link in an Alert

Version 1

    I'm not one to leave things the way they are, and as such, thought I would share my customization on the Alerts Acknowledgement link for alert messages.

     

     

    First, I like to control the formatting and the language in the messages that go out. Also, I don't always want everyone hitting my primary server as the bulk of users hit my additional web server. Thus, the need for more control over the links. With the alert message set to HTML format, these modifications will give you more control over the look and feel of your alert messages.

     

     

    Here are a few I've done so far. More likely to follow as I build them out:

     

     

    /* !Node Ack Link */

    <a href="http://ORIONSERVER/Orion/Netperfmon/AckAlert.aspx?AlertDefID=${SQL:SELECT AlertStatus.AlertDefID FROM AlertStatus JOIN AlertDefinitions ON AlertStatus.AlertDefID = AlertDefinitions.AlertDefID WHERE AlertDefinitions.AlertName = '${AlertName}' AND AlertStatus.ActiveObject = '${NodeID}' AND AlertStatus.ObjectName = '${ObjectName}'}:${NodeID}:Node&viaEmail=true">Acknowledge This Alert</a>

     

     

     

     

    /* !Application Component Ack Link */

    Example output link from the ${AcknowledgeURL}

    http://ORIONSERVER/Orion/Netperfmon/AckAlert.aspx?AlertDefID=362e3489-e5eb-4d4b-8ed7-82104a9fb74f:27393:APM%3a+Component&viaEmail=true

     

     

     

     

    Modified Custom HTML Link

    <a href="http://ORIONSERVER/Orion/Netperfmon/AckAlert.aspx?AlertDefID=${SQL:SELECT AlertStatus.AlertDefID FROM AlertStatus JOIN AlertDefinitions ON AlertStatus.AlertDefID = AlertDefinitions.AlertDefID WHERE AlertDefinitions.AlertName = '${AlertName}' AND AlertStatus.ActiveObject = '${ComponentID}' AND AlertStatus.ObjectName = '${ObjectName}'}:${ComponentID}:APM%3a+Component&viaEmail=true">Acknowledge This Alert</a>

     

     

     

     

    /* !Application Acks */

    Example output link from the ${AcknowledgeURL}

    http://ORIONSERVER/Orion/Netperfmon/AckAlert.aspx?AlertDefID=362e3489-e5eb-4d4b-8ed7-82104a9fb74f:7289:APM%3a+Application&viaEmail=true

     

     

     

     

    Modified Custom HTML Link

    <a href="http://ORIONSERVER/Orion/Netperfmon/AckAlert.aspx?AlertDefID=${SQL:SELECT AlertStatus.AlertDefID FROM AlertStatus JOIN AlertDefinitions ON AlertStatus.AlertDefID = AlertDefinitions.AlertDefID WHERE AlertDefinitions.AlertName = '${AlertName}' AND AlertStatus.ActiveObject = '${ApplicationID}' AND AlertStatus.ObjectName = '${ObjectName}'}:${ApplicationID}:APM%3a+Application&viaEmail=true">Acknowledge This Alert</a>

     

     

     

     

    /* !Volumes Acks */

    Example output link from the ${AcknowledgeURL}

    http://ORIONSERVER/Orion/Netperfmon/AckAlert.aspx?AlertDefID=362e3489-e5eb-4d4b-8ed7-82104a9fb74f:9250:Volume&viaEmail=true

     

     

     

     

    Modified Custom HTML Link

    <a href="http://ORIONSERVER/Orion/Netperfmon/AckAlert.aspx?AlertDefID=${SQL:SELECT AlertStatus.AlertDefID FROM AlertStatus JOIN AlertDefinitions ON AlertStatus.AlertDefID = AlertDefinitions.AlertDefID WHERE AlertDefinitions.AlertName = '${AlertName}' AND AlertStatus.ActiveObject = '${VolumeID}' AND AlertStatus.ObjectName = '${ObjectName}'}:${VolumeID}:Volume&viaEmail=true">Acknowledge This Alert</a>