Netdata: failed to send email

Created on 24 Nov 2016  路  3Comments  路  Source: netdata/netdata

thx for the software,I read the health wiki to configurate,but I cannot receive alarm via email.My system is centos 6,I can use command to sendmail ,like this:
mail -s 'test mail' [email protected] </usr/local/test.txt

this is the error log:

/usr/local/netdata/usr/libexec/netdata/plugins.d/alarm-notify.sh: line 471: /usr/sbin: is a directory
2016-11-24 15:46:06: alarm-notify.sh: ERROR: failed to send email notification for: centos1 disk_space._home.disk_space_usage is WARNING to '[email protected]' with error code 126.

my send mail path is:/usr/sbin,and service start,here is my conf:
sendmail path
image

recipient address:
image

what's the problem?and is there any conf demo I can refer to?

question

Most helpful comment

It needs the full path to the sendmail command, i.e. sendmail="/usr/sbin/sendmail". Or leave it empty. It will find it in /usr/sbin. This is used in cases where multiple MTAs are installed in a system, to allow the admin route the email to the proper MTA.

All 3 comments

It needs the full path to the sendmail command, i.e. sendmail="/usr/sbin/sendmail". Or leave it empty. It will find it in /usr/sbin. This is used in cases where multiple MTAs are installed in a system, to allow the admin route the email to the proper MTA.

thx for the reply,really do me a favor,now it works ,thx

ok. nice.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dugajean picture dugajean  路  3Comments

kenXengineering picture kenXengineering  路  3Comments

tern222 picture tern222  路  3Comments

modem7 picture modem7  路  3Comments

ibnesayeed picture ibnesayeed  路  3Comments