Page 1 of 1

Email Notifications not working

Posted: Wed May 31, 2017 7:08 am
by s.rajesh054
Email is not getting triggered
Getting following error please help
SERVICE NOTIFICATION: nagiosadmin;Jiffy_103;Memory Usage;WARNING;notify-service-by-email;WARNING - 7.3% (1180412 kB) free!
[1496232366] wproc: NOTIFY job 51 from worker Core Worker 29036 is a non-check helper but exited with return code 127
[1496232366] wproc: host=Jiffy_103; service=Memory Usage; contact=nagiosadmin
[1496232366] wproc: early_timeout=0; exited_ok=1; wait_status=32512; error_code=0;
[1496232366] wproc: stderr line 01: /bin/sh: /bin/mail: No such file or directory
[1496232366] wproc: stderr line 02: /usr/bin/printf: write error: Broken pipe

Re: Email Notifications not working

Posted: Wed May 31, 2017 12:27 pm
by tgriep
It looks like the /bin/mail application is not installed on your system or the mail application is not in the /bin folder.
If the mail application is not installed on your system, install the mailx package anf that should install the mail application.
If it is already installed, run the following command as root and it will show you the location the mail application is installed at.

Code: Select all

which mail
It if is in a different path, update the path to the mail application in the notify-service-by-email command in the commands.cfg file and that should fix it for you.

Re: Email Notifications not working

Posted: Thu Jun 01, 2017 8:25 am
by s.rajesh054
Thanks tgriep the above solution from you solved the problem

Re: Email Notifications not working

Posted: Thu Jun 01, 2017 10:49 am
by avandemore
Thanks for using Nagios! If you have further issues, please open a new thread or ticket.