tacticalrmm icon indicating copy to clipboard operation
tacticalrmm copied to clipboard

Feature Request: Customizing Email Alerts

Open Danielh101 opened this issue 3 years ago • 6 comments

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.

Danielh101 avatar Jul 11 '21 03:07 Danielh101

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"

NiceGuyIT avatar Apr 20 '23 20:04 NiceGuyIT

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.

ioscanner avatar Apr 24 '23 07:04 ioscanner

Please submit a PR and devs can check it etc

dinger1986 avatar Apr 24 '23 08:04 dinger1986

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

XiteHosting avatar Apr 15 '24 09:04 XiteHosting

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

silversword411 avatar Apr 15 '24 17:04 silversword411

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.

XiteHosting avatar Apr 15 '24 17:04 XiteHosting