<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = "urn:schemas-microsoft-com:office:office"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>After adding "mail" into the command it works. What
may have caused it to not be there?</FONT></DIV>
<DIV><FONT face=Arial size=2>I didn't specify --with-mail=<EM>dir</EM> when I
compiled nagios. Can that be the problem???</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=c.mies@itnovum.de href="mailto:c.mies@itnovum.de">Mies, Christian</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=nagios-users@lists.sourceforge.net
href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, March 14, 2007 12:40
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Nagios-users] Problem with
notify-by-email</DIV>
<DIV><BR></DIV>
<DIV dir=ltr align=left>
<DIV dir=ltr align=left><SPAN class=607153911-14032007><FONT face=Arial
color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=607153911-14032007><FONT face=Arial
color=#0000ff size=2>have a look at this part of the
error:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=607153911-14032007><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=607153911-14032007>Nagios process!" | -s
"** PROBLEM alert </SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=607153911-14032007></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=607153911-14032007><FONT face=Arial
color=#0000ff size=2>The mail command is missing, I
think.</FONT></SPAN></DIV></DIV>
<DIV> </DIV>
<DIV align=left>
<DIV class=Section1>
<P class=MsoNormal align=left><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Mit freundlichem Gruß</SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Christian
Mies </SPAN></P>
<P class=MsoNormal><SPAN class=SpellE><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">it-novum</SPAN></SPAN><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> GmbH, <SPAN class=SpellE><SPAN
style="COLOR: black">Edelzeller</SPAN></SPAN><SPAN style="COLOR: black"> Str.
44, 36043 Fulda, Germany </SPAN><BR><SPAN
style="COLOR: black">FON: +49 (661)
103-874(333)</SPAN> <SPAN
style="COLOR: black">FAX: +49 (661)
103-334</SPAN><BR><SPAN style="COLOR: black">MAIL: </SPAN> <A
title=mailto:m.kienle@itnovum.de href="mailto:c.mies@itnovum.de"
target=_blank><SPAN
title=mailto:m.kienle@itnovum.de>c.mies@itnovum.de</SPAN></A>
<SPAN style="COLOR: black">WEB: </SPAN> <A
title=/exchweb/bin/redir.asp?URL=http://www.itnovum.de/
href="http://www.itnovum.de" target=_blank><SPAN
title=/exchweb/bin/redir.asp?URL=http://www.itnovum.de/>http://www.itnovum.de</SPAN><SPAN
title=/exchweb/bin/redir.asp?URL=http://www.itnovum.de/><SPAN
style="COLOR: windowtext; TEXT-DECORATION: none; text-underline: none"></SPAN></SPAN></A>
<BR>Handelsregister:
<SPAN
style="mso-spacerun: yes"> </SPAN>Amtsgericht Fulda, HRB 1934
<BR>Geschäftsführer:
Michael Kienle
(Vorsitz), Stefan Heil<BR>Sitz der
Gesellschaft: Fulda
<BR><SPAN
class=SpellE>UstID-Nr</SPAN>:
DE813211784 <BR><SPAN
class=SpellE>Steuernr</SPAN>.:
018/225/03095 <o:p></o:p></SPAN></P></DIV></DIV>
<DIV> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B>
nagios-users-bounces@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] <B>Im Auftrag von
</B>chiel<BR><B>Gesendet:</B> Mittwoch, 14. März 2007 12:17<BR><B>An:</B>
nagios-users@lists.sourceforge.net<BR><B>Betreff:</B> [Nagios-users] Problem
with notify-by-email<BR></FONT><BR></DIV>
<DIV></DIV>
<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">****@****.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></BLOCKQUOTE>
<P>
<HR>
<P></P>-------------------------------------------------------------------------<BR>Take
Surveys. Earn Cash. Influence the Future of IT<BR>Join SourceForge.net's
Techsay panel and you'll get the chance to share your<BR>opinions on IT &
business topics through brief surveys-and earn
cash<BR>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
<P>
<HR>
<P></P>_______________________________________________<BR>Nagios-users mailing
list<BR>Nagios-users@lists.sourceforge.net<BR>https://lists.sourceforge.net/lists/listinfo/nagios-users<BR>:::
Please include Nagios version, plugin version (-v) and OS when reporting any
issue. <BR>::: Messages without supporting info will risk being sent to
/dev/null</BLOCKQUOTE></BODY></HTML>