Email Notifications not working

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
s.rajesh054
Posts: 2
Joined: Mon Apr 03, 2017 11:59 pm

Email Notifications not working

Post 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
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Email Notifications not working

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
s.rajesh054
Posts: 2
Joined: Mon Apr 03, 2017 11:59 pm

Re: Email Notifications not working

Post by s.rajesh054 »

Thanks tgriep the above solution from you solved the problem
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Email Notifications not working

Post by avandemore »

Thanks for using Nagios! If you have further issues, please open a new thread or ticket.
Previous Nagios employee
Locked