Error sending email notifications

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
texano
Posts: 2
Joined: Sat Jul 12, 2014 4:57 pm

Error sending email notifications

Post by texano »

Hello,

I'm getting the following error in nagios.log file when trying to send a email notification.

[1405202117] EXTERNAL COMMAND: SEND_CUSTOM_SVC_NOTIFICATION;ABACO004;fs_C:/;0;admsap;TEST
[1405202117] SERVICE NOTIFICATION: admsap;ABACO004;fs_C:/;CUSTOM (CRITICAL);check-mk-notify;CRIT - 95.7% used (35.65 of 37.2 GB), (levels at 80.00/90.00%), trend: +616.71kB / 24 hours;admsap;TEST
[1405202117] wproc: NOTIFY job 270 from worker Core Worker 9125 is a non-check helper but exited with return code 2
[1405202117] wproc: host=ABACO004; service=fs_C:/; contact=admsap
[1405202117] wproc: early_timeout=0; exited_ok=1; wait_status=512; error_code=0;
[1405202117] wproc: stderr line 01: execvp(NOTIFY_CONTACTNAME=admsap, ...) failed. errno is 2: No such file or directory


Is this a known issue? Is there any away to fix this? This is a fresh installation in Debian.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Error sending email notifications

Post by lmiltchev »

I believe this is a bug, which has been reported on our bug tracker here:

http://tracker.nagios.org/view.php?id=582
Be sure to check out our Knowledgebase for helpful articles and solutions!
texano
Posts: 2
Joined: Sat Jul 12, 2014 4:57 pm

Re: Error sending email notifications

Post by texano »

Hey lmiltchev,

I'm kinda new with nagios.

Should i apply "582-command-v3.patch" to fix this? How i apply this patch?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Error sending email notifications

Post by lmiltchev »

Here's how you apply a patch to a source code:

http://www.cyberciti.biz/faq/appy-patch ... h-command/

I suppose, you can run something like this:

Code: Select all

cd /tmp/nagios-4.0.7/lib
wget http://tracker.nagios.org/file_download.php?file_id=250&type=bug
patch runcmd.c < 582-command-v3.patch
then recompile nagios.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked