<br><br><div><span class="gmail_quote">On 3/14/07, <b class="gmail_sendername">chiel</b> <<a href="mailto:chiel@gmx.net">chiel@gmx.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff">
<div><font face="Arial" size="2">Hi,</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">When Nagios is trying to send me an e-mail I get
the following error in the event log:</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div>
<div>[03-14-2007 12:02:36] Warning: Attempting to execute the command
"/usr/bin/printf "%b" "***** Nagios 2.7 *****\n\nNotification Type:
PROBLEM\n\nService: Nagios\nHost: ****\nAddress: ***.***.***.***\nState:
CRITICAL\n\nDate/Time: Wed Mar 14 12:02:36 CET 2007\n\nAdditional
Info:\n\nNAGIOS CRITICAL: Could not locate a running Nagios process!" | -s "**
PROBLEM alert - ****/Nagios is CRITICAL **" <a href="mailto:****@****.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">****@****.com</a>" resulted in a return code of 127.
Make sure the script or binary you are trying to execute actually
exists...</div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">I use Nagios 2.7 with Debian and Exim4. Exim is
working normal and sents a e-mail when I do the following test:</font></div>
<div><font face="Arial" size="2">"printf text | mail -s "subject" e-mail
address"</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">The "notify-by-email" command is present in the
commands.cfg</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">I didn't find any help on google etc..</font></div>
<div><font face="Arial" size="2">any idea?</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">chiel</font></div></div>
</blockquote></div><br>It looks like the keyword 'mail' is missing from your command definition, right after the pipe.<br>