Page 1 of 1

Nagios wont send notification by mail

Posted: Sat Nov 25, 2017 3:50 am
by bonfante
Hi,

I installed sSMTP and configured and tested, and it works fine, but Nagios doesnt want to send any mail.
In the nagios log I have this situation:

Code: Select all

SERVICE NOTIFICATION: nagiosadmin;localhost;Environment Sensors;CRITICAL;notify-service-by-email;CRITICAL: {Temperature 30.5 Degrees Celsius (CRITICAL >= 27.0)} {Humidity 38.9 %}
[1511561723] wproc: NOTIFY job 1 from worker Core Worker 24994 is a non-check helper but exited with return code 1
[1511561723] wproc:   host=localhost; service=Environment Sensors; contact=nagiosadmin
[1511561723] wproc:   early_timeout=0; exited_ok=1; wait_status=256; error_code=0;
[1511561723] wproc:   stderr line 01: ssmtp: RCPT TO:<** PROBLEM Service Alert: localhost/Environment Sensors is CRITICAL **@gmail.com> (501 <** PROBLEM Service Alert: localhost/Environment Sensors is CRITICAL=**@gmail.com>: "@" or "." expected after "**")
I don't understand what it means!
Please help!

Thanks in advance

Re: Nagios wont send notification by mail

Posted: Mon Nov 27, 2017 4:53 pm
by dwhitfield
You will want to take a look at https://www.unixmen.com/send-alerts-nag ... ail-yahoo/

Please run tar -zcvf /tmp/supporttar.tar.gz /usr/local/nagios/etc and then attach the file. You won't be able to PM yet, but if you don't want that info on the open forum, just respond and once your second post gets approved you'll be able to PM it to me or another tech.