Support Questions

Find answers, ask questions, and share your expertise

How can I change Cloudera Alert mail subject

avatar
Contributor

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.

1 ACCEPTED SOLUTION

avatar
Master Collaborator

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-s...

 

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

 

Regards,

Alex

View solution in original post

2 REPLIES 2

avatar
Master Collaborator

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-s...

 

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

 

Regards,

Alex

avatar
Community Manager

@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. 



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.
Learn more about the Cloudera Community: