cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Highlighted
Level 10

How to add the AD Description attribute into the email alert Trigger Actions ?

Hi All,

How can I add the Active Directory "Description" field into the existing email alert in Solarwinds SAM v6.9?

I have customized the template like below, but not sure how to add the most important AD field to make the email alert more meaningful.

<html>

   <head>

      <style type="text/css"></style>

   </head>

   <body>

      <table class='alert' style="border:3px solid #FF7D7D;border-collapse:collapse;font-family:Verdana;font-size:10pt;">

         <tr>

            <th colspan="2" style="border-bottom:3px solid #FF7D7D;padding:5px;background-color:#FFE0E0">CRITICAL - System Down Event</th>

         </tr>

         <tr>

            <td>Alert: </td>

            <td>CRITICAL: The Following Node Has Gone Down</td>

         </tr>

         <tr class='alt'>

            <td style="background-color:#FFE0E0;text-align:justify;padding:3px" >Node Name</td>

            <td style="background-color:#FFE0E0;text-align:justify;padding:3px">${NodeName}</td>

         </tr>

         <tr>

            <td>Location</td>

            <td>${Node.location}</td>

         </tr>

         <tr class='alt'>

            <td style="background-color:#FFE0E0;text-align:justify;padding:3px">System Name</td>

            <td style="background-color:#FFE0E0;text-align:justify;padding:3px">${Node.DNS}</td>

         </tr>

         <tr>

            <td>IP Address</td>

            <td>${Node.IP_Address}</td>

         </tr>

         <tr class='alt'>

            <td style="background-color:#FFE0E0;text-align:justify;padding:3px">Node URL</td>

            <td style="background-color:#FFE0E0;text-align:justify;padding:3px"><A href=${NodeDetailsURL}>Click Here</A></td>

         </tr>

         <tr>

            <td>Time of Alert</td>

            <td>${Time}     ${Date}      ${Day}</td>

         </tr>

      </table>

   </body>

</html>

Thank you in advance.

2 Replies
Highlighted

Re: How to add the AD Description attribute into the email alert Trigger Actions ?

Have you populated a custom property for the node using Orion SDK 2.2 released ? Then you would need to add this where you want to insert the data.

Insert the following SQL query into the Alert message section:

${SQL:Select "Your_Custom_Property_Name" from Nodes WHERE NodeID='${NodeID}'}

You can run this query against the database to confirm the custom property is stored and available.

From: Success Center

0 Kudos
Highlighted
Product Manager
Product Manager

Re: How to add the AD Description attribute into the email alert Trigger Actions ?

Tracking improvements here under SAM-10104, let me know if you choose to use Tom's suggested custom property idea.

0 Kudos