cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

This product reached the end of support date on March 31, 2021.

Extended Email Plugin for AppMon 7.0

gaur_bharti
Guide

Hi,

Recently we have migrated to AppMon 7.0 and installed extended Email Plugin in test environment.

I am getting the email notifications from plugin but not getting the dashboard report as attachment in a mail. I have tried with ending the dashboard name with a semicolon ; but still not getting the dashboard report.

Please find the below template snapshot for reference.

Body template is blank, do I need to mention anything there? if yes then what is that.

Any quick response would be highly appreciable.

Thanks in advance

Bharti G.

21 REPLIES 21

rk_sakthiraam
Inactive

Hi All,

We are facing the same problem in the dynatrace 6.5 version as well. It's providing the REST link in the "DASHBOARD_URL_1" value but the email is not having any attachments. Also the PURE_PATH_1 to 10 values are null. How we can get the pure path information and email with attachment.

Kindly help

Thanks

Hi Sakthi,

Which minor version of Dynatrace 6.5 are you using? I think that the email report functionality was broken before version 6.5.9 with certain conditions of your SMTP server: "


  • JLT-177329 - Sending report emails with StartTLS does not work if the SMTP server is configured to REQUIRE StartTLS"
  • https://community.dynatrace.com/community/display/PROD/Dynatrace+AppMon+6.5.9+Release+Notes

I had this problem, and it has since been fixed after updating to 6.5.14+

Thanks,

Eric

gaur_bharti
Guide

Hi @Eugene T.

As you are author of this plugin, would you be able to help me and @Sakthi Raam R K.

I have followed the instructions given on below link but still I am not getting the dashboard as an attachment.

https://community.dynatrace.com/community/pages/viewpage.action?title=Extended+EMail+Action+Plugin&spaceKey=DL

Appreciate your help.

Thanks

Bharti G

Hi Bharti, Hope you too have similar problem. Please do check your plug-in configuration with property dynaTrace Server REST Port and Protocol.

Thank You

rk_sakthiraam
Inactive

Hi Eric, Thanks for your response. We are currently running on 6.5.13. Also we have scheduled task which sends email to us with reports. We don't find any problem with that. Only the email coming from plug-in we don't see.

By checking the email plug-in log found a re-direction from HTTP to HTTPS is happening.

2017-05-17 15:38:14 SEVERE [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] getFileFromUrl method: java.lang.RuntimeException exception occurred. Message = 'getStringFromUrl method: returned HTTP Response Code from the 'http://xxxxxxxxx:8020/rest/management/reports/create/HTTP-5XX-Exception?type=PDF' is '307' but should be 200.'; Stacktrace is ''

Resolved the problem by changing my REST port to 8021 and protocol to HTTPS in the plug-in configuration as we have checked the accept authentication data only with HTTPS in webserver management configuration. Now getting the incident notification with report attached.

Thank You

Great to know you found the fix. I have since began using your suggestion to use HTTPS instead to avoid this possible issue.

Thanks,

Eric

gaur_bharti
Guide

Hi @Sakthi Raam R K.

I have changed the port and protocol but now I am getting below error


2017-05-18 01:21:36 SEVERE [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] setEmailBody method: java.lang.RuntimeException exception occurred. Message = 'getFile method: cannot find file 'res/compuware_logo.png' in the jar.'; Stacktrace is ''

2017-05-18 01:21:36 SEVERE [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] sendMailAction method: java.lang.RuntimeException exception occurred. Message = 'getFile method: cannot find file 'res/compuware_logo.png' in the jar.'; Stacktrace is ''

2017-05-18 01:21:36 SEVERE [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] processIncident method: java.lang.RuntimeException exception occurred. Message = 'getFile method: cannot find file 'res/compuware_logo.png' in the jar.'; Stacktrace is ''

2017-05-18 01:21:36 SEVERE [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] sendMail method: java.lang.RuntimeException exception occurred. Message = 'getFile method: cannot find file 'res/compuware_logo.png' in the jar.'; Stacktrace is ''

Request you to please help on this.

Thanks in advance

Bharti G.

Hi Bharti,

Which version of plug-in you are using. They replaced the compuware logo with dynatrace logo in release "0.9.9.19". Please download the latest release from the community page and try.

Link : https://community.dynatrace.com/community/pages/viewpage.action?title=Extended+EMail+Action+Plugin&s...

Thank You

gaur_bharti
Guide

Hi @Sakthi Raam R K.

We are using dynatrace 7.0 and we have installed latest version 0.10.13 of plugin not sure why its not working.

Could you please suggest something on this.

Thanks

Bharti G.

gaur_bharti
Guide

@Sakthi Raam R K. , @Eric E.one more issue we are facing regarding alerting, Once we created any incident only once we are getting alert notifications for that eventhough we have disabled Smart Alerting option still not getting the notifications.

We are using plugin version 0.10.13.

Appreciate your response

Thanks

Bharti G

Hey Bharti, it depends on how your incident is triggered. When it starts, does the incident end immediately? Or does the incident remain in an unconfirmed state? The email will only be generated when the incident starts and/or ends (depending on how you configure the emails to be sent). It will not continue to send emails if the incident remains in that status. I would recommend that you ensure once more that Smart Alerting is turned off( Even if you turn it off when you first create the incident, it will sometimes turn itself back on, as I have experienced). I would also recommend to test the email alerting by confirming the incident right after you see the email. Then once confirmed, see if the incident is created again, and if you receive an email. Let me know how that works.

-Eric

gaur_bharti
Guide

@Eric E. I am getting the regular mails but still issue persist for dashboard attachment 😞

With extended email plugin i am getting the notifications but dashboard is not getting added as an attachment to email. I am getting below error

2017-06-09 06:21:04
SEVERE [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action]
getStringFromUrl method: returned HTTP Response Code from the 'http://dynatrace-test.demo.com:8020/rest/management/reports/create/TestEmailPlugin?type=XLS'
is '307' but should be 200.

2017-06-09 06:21:04 FINER
[MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action]
Entering getExceptionAsString method

See Sakthi's comment above from May 18th, it seems like it is redirecting from http to https causing the report creation to fail. Try setting the extended email to use https and port 8021 in the extended email configuration or checking your server -> services -> management settings and see if you have http enabled and allowed.

gaur_bharti
Guide

@James K. thanks for your reply. I did what sakthi has suggested but when i changed the port to 8021 i stopped getting email notifications

gaur_bharti
Guide

Hello Experts,

I am using port as 8021 and https, but still not getting dashboard as an attachment

We are using latest version 0.10.13 of extended email plugin.

Appreciate your quick response

Thanks

Bharti G

Did you look into your server settings to see if if you have http and port 8020 set as being enabled?

Also when you tried using 8021 and didn't get any emails was there anything written to the logs?

I'm pretty confident this is an issue with the rest call the plugin makes to generate the report not an issue with the plugin itself so I imagine it is some server setting that needs to be corrected.

Hi Bharti,

In the plugin what protocol and port your are using. Is it 8021 and https ?. Can you please paste the configuration of your plugin and the management settings of your server. Also you can enable FINER log for plug-in and see what is getting logged into the plug-in log.

Also can you try to access the "'https://dynatrace-test.demo.com:8021" from your browser and see if the link is accessible.

Also in place of domain name try to use IP address and see if you are getting the dashboard.

Thanks

sankar_siva
Inactive

Hey Folks, @Sakthi R. @James K. @Eric E.

We tried using both HTTP & HTTPS Rest protocol in the extended email plugin but still no luck with it.

Moroever we're finding status code 401 on both of the protocol & attached the error log below for reference, Let me know if you have any fix for the same.

2017-06-28 00:56:13 WARNING [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] setEmailBodyDashboards method: skip report 'TestEmailPlugin' because of the following ReportCreationException 'com.dynatrace.diagnostics.plugins.extendedmailreport.exception.ReportCreationException exception occurred. Message = 'java.lang.RuntimeException exception occurred. Message = 'getStringFromUrl method: returned HTTP Response Code from the 'http://dynatrace-test.demo.com:8020/rest/management/reports/create/TestEmailPlugin?type=XLS' is '401' but should be 200.'; Stacktrace is '''; Stacktrace is ''
2017-06-28 00:58:03 SEVERE [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] getStringFromUrl method: returned HTTP Response Code from the 'http://dynatrace-test.demo.com:8020/rest/management/reports/create/TestEmailPlugin?type=XLS' is '401' but should be 200
2017-06-28 00:59:43 SEVERE [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] getStringFromUrl method: returned HTTP Response Code from the 'https://dynatrace-test.demo.com:8021/rest/management/reports/create/TestEmailPlugin?type=XLS' is '401' but should be 200.
2017-06-28 00:59:43 SEVERE [MailExecutor@com.dynatrace.diagnostics.plugins.extendedmailreport.action] getFileFromUrl method: java.lang.RuntimeException exception occurred. Message = 'getStringFromUrl method: returned HTTP Response Code from the 'https://dynatrace-test.demo.com:8021/rest/management/reports/create/TestEmailPlugin?type=XLS' is '401' but should be 200.'; Stacktrace is ''

Thanks !

Hi Bharti/Siva,

Can you check if the dynatrace user and password configured in the plug-in is having the required privileges. You can try with an admin user and see you get the report.

Thanks

gaur_bharti
Guide

@Eugene T. Could you please help in this regard, We are not able to get the dashboard as an attachment via plugin alerts.

Appreciate your help.

Thanks

Bharti G.