Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email notifications #3031

Closed
Nirjonadda opened this issue Nov 17, 2017 · 14 comments
Closed

Email notifications #3031

Nirjonadda opened this issue Nov 17, 2017 · 14 comments
Labels

Comments

@Nirjonadda
Copy link

Please let me know that How we can disable email notifications?

@ktsaou
Copy link
Member

ktsaou commented Nov 18, 2017

You can disable email notifications by editing /etc/netdata/health_alarm_notify.conf and setting SEND_EMAIL="NO", here: https://github.com/firehol/netdata/blob/f314f1d841d328744bc83a1dfb2b427ab806f126/conf.d/health_alarm_notify.conf#L111

You can disable all the alarms in netdata, by editing /etc/netdata/netdata.conf and setting

[health]
  enabled = no

@Nirjonadda
Copy link
Author

@ktsaou Today i have installed in new server but does not find out /etc/netdata/health_alarm_notify.conf

@Nirjonadda
Copy link
Author

screenshot00375

@paulfantom
Copy link
Contributor

@Nirjonadda we just changed placing of configuration files and whole config management. You can read more in #4182

@Nirjonadda
Copy link
Author

@paulfantom So file location changed? I have found this files both location. So what location we can use for disable email notifications?

/root/netdata/conf.d/health_alarm_notify.conf

/usr/lib/netdata/conf.d/health_alarm_notify.conf

@Nirjonadda
Copy link
Author

/root/netdata/conf.d/health_alarm_notify.conf

screenshot00376

/usr/lib/netdata/conf.d/health_alarm_notify.conf

screenshot00377

@Ferroin
Copy link
Member

Ferroin commented Sep 27, 2018

If the file exists in /etc/netdata, it will override anything located in /usr/lib/netdata/conf.d. Using this, you can copy the file to /etc/netdata and edit it there just like you would have before the change to disable email notifications.

@Nirjonadda
Copy link
Author

@Ferroin How to copy from /usr/lib/netdata/conf.d to /etc/netdata?

@paulfantom
Copy link
Contributor

paulfantom commented Sep 27, 2018

@Nirjonadda

cp /usr/lib/netdata/conf.d/<your_file> /etc/netdata/conf.d/

@Nirjonadda
Copy link
Author

@paulfantom One more ask, So need copy from /usr/lib/netdata/conf.d to /etc/netdata because netdata update or upgrade will be overwriting this files?

@ktsaou
Copy link
Member

ktsaou commented Sep 27, 2018

Yes, the files in /usr/lib/netdata/conf.d get overwritten with updates. The files in /etc/netdata do not.

So, just copy the file you need and then edit it.

@Nirjonadda
Copy link
Author

@paulfantom Not working to copy. I think does not have conf.d folder in /etc/netdata?

[root@ra ~]# cp /usr/lib/netdata/conf.d/health_alarm_notify.conf /etc/netdata/conf.d/
cp: cannot create regular file ‘/etc/netdata/conf.d/’: Not a directory
[root@ra ~]#

@ktsaou
Copy link
Member

ktsaou commented Sep 27, 2018

Yes, this is the one:

cp /usr/lib/netdata/conf.d/health_alarm_notify.conf /etc/netdata/

@paulfantom
Copy link
Contributor

paulfantom commented Sep 27, 2018

@Nirjonadda

cp /usr/lib/netdata/conf.d/health_alarm_notify.conf /etc/netdata/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants