# Email Notification - Client Specific Naming in Subject / Body

**URL:** <https://community.netdata.cloud/t/email-notification-client-specific-naming-in-subject-body/3657>\
**Category:** Help\
**Created:** [December 19, 2022, 5:40am UTC](https://community.netdata.cloud/t/email-notification-client-specific-naming-in-subject-body/3657 "2022-12-19T05:40:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![servermatter](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/servermatter/32/1844_2.png) [@servermatter](https://community.netdata.cloud/u/servermatter)\
**Post date:** [December 19, 2022, 5:40am UTC](https://community.netdata.cloud/t/email-notification-client-specific-naming-in-subject-body/3657/1 "2022-12-19T05:40:44Z")

</div>

Hello,

After considerable digging around I am not finding where I can make overrides to the alarm notifications that would make it clear which server this is coming from.

We have 4 client servers and are not connected to the cloud service. We are getting notifications however since all 4 servers have a hostname of ‘servermatter’ we can’t tell which one the email is coming from.

We have learned and tested if we run the command:  
/usr/libexec/netdata/plugins.d/alarm-notify.sh sysadmin [MYDOMAIN.COM](http://MYDOMAIN.COM) 1 1 1 1661824572 test\_alarm test.chart test.family WARNING CLEAR 100 90 /usr/libexec/netdata/plugins.d/alarm-notify.sh 1 1 units ‘ServerMatter Alarm - This Is Only A Test Verifying Notifications Work’ ‘PASSED’ ‘old value’ ‘evaluated expression’ ‘expression variable values’ 0 0

It succeeds in accomplishing our goal:  
2022-12-18 21:38:59: alarm-notify.sh: INFO: sent email notification for: [MYDOMAIN.COM](http://MYDOMAIN.COM) test.chart.test\_alarm is WARNING to ‘admin@servermatter.com’

However we have not been able to find where to insert this type of customization for all our ‘real’ alarms.

What sayeth the group?

Thanks.

Jay  
CompuMatter

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/netdata2/original/2X/d/dcc6a6300dbd888ecbd54e3d99a6c0b7b87db52e.png)

Using version 1.37 of Netdata.

---

<div class="post-metadata">

**Author:** ![Manolis\_Vasilakis](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/manolis_vasilakis/32/820_2.png) [@Manolis\_Vasilakis](https://community.netdata.cloud/u/Manolis_Vasilakis)\
**Post date:** [December 19, 2022, 8:16am UTC](https://community.netdata.cloud/t/email-notification-client-specific-naming-in-subject-body/3657/2 "2022-12-19T08:16:34Z")

</div>

Hi @servermatter !

Can you try the following if it works for you?

In each node’s `/etc/netdata/netdata.conf`, can you edit (and uncomment) the entry `registry hostname` and add there a custom hostname for each?

It should then use that for notifications on the subject in place of `Critical, disk_space_usage = 100%, on XXXXXXX`. The same string should appear in place of now `servermatter` under the `disk_space_usage`.

---

<div class="post-metadata">

**Author:** ![servermatter](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/servermatter/32/1844_2.png) [@servermatter](https://community.netdata.cloud/u/servermatter)\
**Post date:** [December 19, 2022, 8:04pm UTC](https://community.netdata.cloud/t/email-notification-client-specific-naming-in-subject-body/3657/3 "2022-12-19T20:04:40Z")

</div>

> [@Manolis\_Vasilakis](#):
>
> `registry hostname`

Hello and thanks for the response. Very much appreciated.

I would not want to completely replace the entire line 'Critical, disk\_space\_usage = 100%, on XXXXXXX` but only the XXXXXXX portion of it. Is that what you mean?

I am testing it now.

---

<div class="post-metadata">

**Author:** ![servermatter](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/servermatter/32/1844_2.png) [@servermatter](https://community.netdata.cloud/u/servermatter)\
**Post date:** [December 19, 2022, 10:15pm UTC](https://community.netdata.cloud/t/email-notification-client-specific-naming-in-subject-body/3657/4 "2022-12-19T22:15:51Z")

</div>

OK, follow up. I interpreted hostname as using my own desired hostname. However you started me in the right direction. I found this page [Registry | Learn Netdata](https://learn.netdata.cloud/docs/agent/registry) and ended up getting the following to work as perfectly as I’d hoped

```auto
[registry]
    registry hostname = mydesiredidhere

```

Thank you. Impressive response time which is rare in todays world.

---

<div class="post-metadata">

**Author:** ![Manolis\_Vasilakis](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/manolis_vasilakis/32/820_2.png) [@Manolis\_Vasilakis](https://community.netdata.cloud/u/Manolis_Vasilakis)\
**Post date:** [December 21, 2022, 7:54am UTC](https://community.netdata.cloud/t/email-notification-client-specific-naming-in-subject-body/3657/5 "2022-12-21T07:54:02Z")

</div>

You’re welcome! Hope you enjoy Netdata!
