Quantcast
Channel: THWACK: All Content - All Communities
Viewing all articles
Browse latest Browse all 20518

Add ability to use Application's custom variables in an APM: component's advanced alert's email address

$
0
0

I have an APM:Component alert which I would like to send an email message to the primary application support group, which I added as a custom field on the application.

I haven't been able to figure out the syntax to get this to work, so I assume it's not available.

I'm able to put the value in the text message using:  ${SQL:select PrimaryAppSupportEmail from APM_ApplicationCustomProperties acp where acp.ApplicationId = ${ApplicationID}}

I tried using ${PrimaryAppSupportEmail} and ${APM_ApplicationCustomProperties.PrimaryAppSupportEmail}

 

Here's the text from the AlertService.log file (modified to remove actual IPs/domain's):

2013-04-18 15:10:17,977 [16] WARN  Error - Failed - Was unable to send email message.

EXCEPTION STACK: --> The server rejected one or more recipient addresses. The server response was: 501 5.1.3 Invalid address

:  :    at Interop.cdosys.MessageClass.Send()

   at SolarWinds.Orion.Core.MessageActions.ActionEmail.AsyncMailToSend.SendThis(Object state);

Email message sent via SMTP Server (IP) To:"underwoodm@domain.com" <underwoodm@domain.com>, "${ApplicationCustomProperties.PrimaryAppSupportEmail}" <${ApplicationCustomProperties.PrimaryAppSupportEmail}> From:"Network Performance Monitor" <orionalert@domain.com> Subject:Application [ITS - Problem Reporting]'s component [Web Link: http://its/Login.aspx?] is Down on servername Body:Application [ITS - Problem Reporting]'s component [Web Link: http://its/Login.aspx?] is Down on servername

 

I noticed the Application fields are not available when creating the email message.

4-19-2013 9-31-34 AM.bmp

Yet, when adding a condition / field to the trigger, they are available.  So I am going to add the custom field to the trigger (even though I don't need it) to see if that makes it accessible in the email addressee field. (This didn't work.)

4-19-2013 9-35-31 AM.bmp

AlertService.log example without qualifying the variable name:

2013-04-19 10:55:27,905 [29] WARN  Error - Failed - Was unable to send email message.
EXCEPTION STACK: --> The server rejected one or more recipient addresses. The server response was: 501 5.1.3 Invalid address
:  :    at Interop.cdosys.MessageClass.Send()
   at SolarWinds.Orion.Core.MessageActions.ActionEmail.AsyncMailToSend.SendThis(Object state);

- Email message sent via SMTP Server IP To:"underwoodm@domainc.com" <underwoodm@domain.com>, "${PrimaryAppSupportEmail}" <${PrimaryAppSupportEmail}> From:"Network Performance Monitor" <orionalert@domain.com> Subject:Application [eMWaste Environment (web)]'s component [Web Link:http://${ServerName}:7778/forms/frmservlet?config=emwaste2] is Unknown on ServerName Body:Application [eMWaste Environment (web)]'s component [Web Link:http://${ServerName:7778/forms/frmservlet?config=emwaste2}] is Unknown on ServerName
Application [eMWaste Environment (web)] is Unknown


Viewing all articles
Browse latest Browse all 20518

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>