Suggested template:
Problem/Question
I want to send mail via smstp. Through the test script (alarm-notify.sh), it is found that it is normal, but when netdata has a warning, it does not send me an email. My level is very poor. Can someone help me?
Suggested template:
I want to send mail via smstp. Through the test script (alarm-notify.sh), it is found that it is normal, but when netdata has a warning, it does not send me an email. My level is very poor. Can someone help me?
@laixi : Can you provide some more details that will help us in debugging this issue?
Regards,
Satya
Thanks for your answer, my node (agent) is not connected to the cloud. I’m going to connect to the cloud, and finally ask, must my node be connected to netdatacloud to send notifications?
@laixi : You don’t need to connect to the Cloud to receive notifications but will need to setup your mail agent on Netdata so the notifications can be sent. The first task is to make sure the sendmail command works on your node and is able to send mails?
Since you are using msmtp (I assume this is what you meant by smstp?), you will need to provide the path to msmtp binary in the health_alarm_notify.conf file for sendmail as mentioned in the link below:
Regards,
Satya
Thanks for your answer, I solved the problem by modifying the location of one of the files.。
mv ~/.msmtprc /etc/msmtprc
error message found in file /var/log/netdata/error.log
(msmtp:account default not found: no configuration file available)
solution
chmod 644 ~/.msmtprc
mv ~/.msmtprc /etc/msmtprc
@laixi : I am glad you were able to solve your issue. Have a great end to the year!