tacticalrmm
tacticalrmm copied to clipboard
Feature Request: Customizing Email Alerts
Is your feature request related to a problem? Please describe. As I was setting up the alert system for Tactical RMM I notice weren't able to customize the email body of the alert email.
Describe the solution you'd like I would like the ability to customize the subject of the email & the look of the body. Also would be cool if we could put more information about the error on the alert. For example. if a server went down we would be able to provide the time that it down.
Describe alternatives you've considered None
Additional context If this is a duplicate feature request please go ahead and disregard it.
It took me a while to find this. Adding keywords to help search:
- "Alert Template"
- "Email Template"
- "SMS Template"
- "Customize Alert"
- "Customize Email"
- "Customize SMS"
I am going to update the alerts /rmm/api/tacticalrmm/alerts/models.py. I will use these: agent.logged_in_username agent.last_logged_in_user I will add it to the alerts to add the logged_in_username, if that is not set then use the last_logged_in_user. Would you like the updated file when I am done? Really would be nice to have a setting to build these in the interface, but files works just as well. Normally after setup you shouldn't modify it much.
Please submit a PR and devs can check it etc
While waiting for a PR or code change, can someone explain the current subject format of the e-mails?
At the moment it seems I'm getting: Client, Site, Hostname - Hostname - Hostname - Script Check: Script Name Failed
Seeing the hostname three times is a bit much :-) But maybe it comes from different fields that happen to have the same value in my case?
regards, Stijn
But maybe it comes from different fields that happen to have the same value in my case?
https://github.com/amidaware/tacticalrmm/blob/e76fa878d281ee178da586fa2a85ac0df670c74e/api/tacticalrmm/checks/models.py#L529
Any idea then why I'm seeing the hostname three times between " - " ? :-)
The only place I have set-up an alert email address is under Global Settings, Email Alerts.