# Alarm notifications not working(should be easy to fix)

**URL:** <https://community.netdata.cloud/t/alarm-notifications-not-working-should-be-easy-to-fix/1395>\
**Category:** Help\
**Tags:** agent, agent-health\
**Created:** [June 2, 2021, 9:03am UTC](https://community.netdata.cloud/t/alarm-notifications-not-working-should-be-easy-to-fix/1395 "2021-06-02T09:03:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gino\_Schreuders](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/gino_schreuders/32/827_2.png) [@Gino\_Schreuders](https://community.netdata.cloud/u/Gino_Schreuders)\
**Post date:** [June 2, 2021, 9:03am UTC](https://community.netdata.cloud/t/alarm-notifications-not-working-should-be-easy-to-fix/1395/1 "2021-06-02T09:03:50Z")

</div>

Dear,

I’m trying to get an email automatic when my configured alarms go off. The alarms look good to me but when I’m running

> sudo su -s /bin/bash netdata
> 
> /usr/libexec/netdata/plugins.d/alarm-notify.sh test [ROLE]

I get as output:

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/netdata2/original/1X/ca08f19d4dc6cd9e82d9caf7a200dff8df833462.png)  
Can someone help me out?

Gino

---

<div class="post-metadata">

**Author:** ![OdysLam](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/odyslam/32/98_2.png) [@OdysLam](https://community.netdata.cloud/u/OdysLam)\
**Post date:** [June 2, 2021, 3:32pm UTC](https://community.netdata.cloud/t/alarm-notifications-not-working-should-be-easy-to-fix/1395/2 "2021-06-02T15:32:46Z")

</div>

Hey,

So the issue appears that you are testing the alarm-notify script, but you haven’t setup the alerts

> **[Alarm notifications | Learn Netdata](https://learn.netdata.cloud/docs/agent/health/notifications)**
>
> Reference documentation for Netdata's alarm notification feature, which supports dozens of endpoints, user roles, and more.

For email specifically:

> **[Email | Learn Netdata](https://learn.netdata.cloud/docs/agent/health/notifications/email)**
>
> You need a working sendmail command for email alerts to work. Almost all MTAs provide a sendmail interface.

---

<div class="post-metadata">

**Author:** ![Gino\_Schreuders](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/gino_schreuders/32/827_2.png) [@Gino\_Schreuders](https://community.netdata.cloud/u/Gino_Schreuders)\
**Post date:** [June 3, 2021, 6:43am UTC](https://community.netdata.cloud/t/alarm-notifications-not-working-should-be-easy-to-fix/1395/3 "2021-06-03T06:43:41Z")

</div>

I’ve already visited those sites but I still cannot figure it out 😒

---

<div class="post-metadata">

**Author:** ![Gino\_Schreuders](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/gino_schreuders/32/827_2.png) [@Gino\_Schreuders](https://community.netdata.cloud/u/Gino_Schreuders)\
**Post date:** [June 3, 2021, 7:01am UTC](https://community.netdata.cloud/t/alarm-notifications-not-working-should-be-easy-to-fix/1395/4 "2021-06-03T07:01:56Z")

</div>

Dear,

Maybe it is good to say that I’m using custom alerts.  
I don’t know if the alert to mail work different with custom alerts?

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

![image](https://canada1.discourse-cdn.com/flex029/uploads/netdata2/original/1X/27e823826e914a73e73f21a87552f4a8c2d467b3.png)

---

<div class="post-metadata">

**Author:** ![OdysLam](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/odyslam/32/98_2.png) [@OdysLam](https://community.netdata.cloud/u/OdysLam)\
**Post date:** [June 3, 2021, 10:13am UTC](https://community.netdata.cloud/t/alarm-notifications-not-working-should-be-easy-to-fix/1395/5 "2021-06-03T10:13:26Z")

</div>

Netadta by default will execute the `alarm-notify.sh` script every time an alert is triggered.

If you haven’t configured that script, no notifications will be sent.

For email, you should follow the following guide. Can you please respond with the output of the test, as it is defined in the following link?

> **[Email | Learn Netdata](https://learn.netdata.cloud/docs/agent/health/notifications/email)**
>
> You need a working sendmail command for email alerts to work. Almost all MTAs provide a sendmail interface.

---

<div class="post-metadata">

**Author:** ![Gino\_Schreuders](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/gino_schreuders/32/827_2.png) [@Gino\_Schreuders](https://community.netdata.cloud/u/Gino_Schreuders)\
**Post date:** [June 4, 2021, 7:26am UTC](https://community.netdata.cloud/t/alarm-notifications-not-working-should-be-easy-to-fix/1395/6 "2021-06-04T07:26:19Z")

</div>

I’ve already send you the output in the first question

---

<div class="post-metadata">

**Author:** ![Gino\_Schreuders](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.netdata.cloud/gino_schreuders/32/827_2.png) [@Gino\_Schreuders](https://community.netdata.cloud/u/Gino_Schreuders)\
**Post date:** [June 7, 2021, 12:46pm UTC](https://community.netdata.cloud/t/alarm-notifications-not-working-should-be-easy-to-fix/1395/7 "2021-06-07T12:46:30Z")

</div>

Thanks for your replies @OdysLam,

I finaly fixed the problem.  
Had to reclaim the node and it worked just fine.

Kind regards,

Gino
