Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
05-16-2020 11:27 AM - last edited on 05-18-2020 09:09 AM by Ryan.Paredez
Hi,
I would like to use the Email Template for the policies triggered. I want to display the Health Rule name in the email body using template variables. I have read this doc https://docs.appdynamics.com/display/PRO45/Predefined+Templating+Variables but there is no class or base class for Health Rule.
Also, I would like to use the background-color property of HTML in the Email template but it seems like Appdynamics is not recognizing the attribute.
Any help will be appreciated. Thanks in advance
Solved! Go to Solution.
06-24-2020 01:51 PM
Here's what I found in works in my environment in my email template:
Health Rule Name: ${event.healthRule.name}.
06-25-2020 07:21 AM
Hi these variables will work. it is also necessary to use html code for coloring.
Subject : [ ${latestEvent.severity}] -${policy.name}
Application Name : ${latestEvent.application.name}
Tier Name : ${latestEvent.tier.name}
NodeName : ${latestEvent.node.name}
Event : ${latestEvent.displayName}
Event Time : ${action.triggerTime}
Event Url : ${latestEvent.deepLink}
Event Message : ${latestEvent.eventMessage}
07-03-2020 12:48 AM
Does anyone have a common template which is standard and will work for any health rule?
Regards,
Gopikrishnan
07-03-2020 12:57 AM
I use this template in all of them. I created One template for all alerts. However, I think it is necessary to create a separate eum related alerts. Some values do not come.
07-03-2020 01:02 AM
Thanks Yasar.
But when the alert gets closed this wont work I guess?
07-03-2020 01:09 AM
Hi , It will not e-mail when the warning is turned off. For example, I watch 35 applications, I check the status of .net agent and machine agents in all of them. If 1 agent falls to 0, it sends an email about the alarm. If I turn off the alarm, it will not send it. What exactly do you want at this point?
I will try to help if you give details
07-03-2020 01:19 AM
So when the agent falls to 0 it will send an email alert saying the agent is down and when the agent is up and running fine will this template send an email that the agent is working fine?
07-03-2020 01:26 AM
Sure it sends.
Criteria are important when creating the alarm.
It is important to send the representative if it is working or to send it if the representative is not.
I do not use active states in my alarms. When it is at critical or alert level, the alarm sends an e-mail. If it continues, it throws, but I don't select send when the problem is resolved.
07-03-2020 01:31 AM
OK Thanks for your help
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form