Skip to main content
banshidhar_saho
Gold ⭐️
February 17, 2022
Solved

How can I change Cloudera Alert mail subject

Hi All,

 

I want to append cluster name in the 'Cloudera Alert mail subject'. I am not getting any configuration for same. Please suggest how to do that.

 

Current Subject: 

[Cloudera Alert] 4 Alerts since 2:31:41 AM

 

Want to change as below (assuming cluster name as ABC):

[Cloudera Alert - ABC ] 4 Alerts since 2:31:41 AM

 

Regards,

Banshi.

aakulov
aakulovAnswer
Platinum ⭐️
February 17, 2022

Hi @banshidhar_saho ,

 

Unfortunately, there is no configuration in CM that will let you change the header of the alert email or the format of the alert email. However, there is a customization you can do by developing a custom script that (a) takes in a JSON string of alerts; and (b) builds and email object and sends it off to your SMTP server.  It takes some effort to write the script, but gives you all the flexibility.

 

See more details here: https://docs.cloudera.com/cdp-private-cloud-base/7.1.3/monitoring-and-diagnostics/topics/cm-alerts-script.html

 

If this is helpful, please accept this reply as a solution.

 

Regards,

Alex

2 replies

aakulov
Platinum ⭐️
aakulovAnswer
Platinum ⭐️
February 17, 2022

Hi @banshidhar_saho ,

 

Unfortunately, there is no configuration in CM that will let you change the header of the alert email or the format of the alert email. However, there is a customization you can do by developing a custom script that (a) takes in a JSON string of alerts; and (b) builds and email object and sends it off to your SMTP server.  It takes some effort to write the script, but gives you all the flexibility.

 

See more details here: https://docs.cloudera.com/cdp-private-cloud-base/7.1.3/monitoring-and-diagnostics/topics/cm-alerts-script.html

 

If this is helpful, please accept this reply as a solution.

 

Regards,

Alex

Translate
VidyaSargur
Community Manager
Community Manager
February 21, 2022

@banshidhar_saho, Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. 

Translate
Regards, Vidya Sargur, Community Manager Was your question answered? Make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button.