DouglasNeuroInformatics / ansible-playbooks

Playbooks for configuring CIC Workstations and Servers
4 stars 11 forks source link

Disable netdata local emails #59

Closed gdevenyi closed 1 year ago

gdevenyi commented 1 year ago

I am getting emails from both netdata cloud and local DNP installed netdata instances.

thomasbeaudry commented 1 year ago

I'm not, are you getting 2 emails per alarm? Maybe it's because you are both sitemgr and admin?

gdevenyi commented 1 year ago

Its because I'm configured as the "root" account on all systems, so the local netdata is sending email to root, which ends up forwarded to my gmail.

gdevenyi commented 1 year ago

https://learn.netdata.cloud/docs/alerting/notifications/agent-dispatched-notifications/email

thomasbeaudry commented 1 year ago

I saw that yesterday and was thining about doing an ansible inline subsitution for the health file, but I wanted to modifying our netdata.conf file first (since it follows a template). On CICWs45 i change the health section to:

[health] enabled alarms = !used_swap !ram_available * DEFAULT_RECIPIENT_EMAIL=""

And then I sent out a test warning at 2:09pm from cicws45. I wanted to know if you got 2 emails for it or just 1?

Also, is it just the critical emails that you get 2 of, or all of them?

thomasbeaudry commented 1 year ago

fixed with: https://github.com/DouglasNeuroInformatics/ansible-playbooks/pull/62