<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 12pt Tahoma">
<DIV><SPAN class=642441520-06052005><FONT size=2>Sorry for the last
mail.</FONT></SPAN></DIV>
<DIV><SPAN class=642441520-06052005><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=642441520-06052005><FONT size=2>ok. </FONT></SPAN></DIV>
<DIV><SPAN class=642441520-06052005><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=642441520-06052005><FONT size=2>1) Nagios
version: <!--StartFragment --> 2.0b3 </FONT></SPAN></DIV>
<DIV><SPAN class=642441520-06052005><FONT size=2>2) I changed the e-mail to send
the alert (in this server I have more services that send alerts and all of them
are working)</FONT></SPAN></DIV>
<DIV><SPAN class=642441520-06052005><FONT size=2>3) no error
message</FONT></SPAN></DIV>
<DIV><SPAN class=642441520-06052005><FONT size=2>4) the log has the
following entry:</FONT></SPAN></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>[1115331023] Warning: Attempting to execute the command
"/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type:
RECOVERY\nHost: Raq4\nState: UP\nAd<BR>dress: 10.66.1.11\nInfo: PING OK - Packet
loss = 0%, RTA = 0.18 ms\n\nDate/Time: Thu May 5 18:10:23 AST 2005\n" |
/usr/bin/mail -s "Host UP alert for Raq4!"<BR> </FONT><A
href="mailto:d.santos@barcelohotels.com.do"><FONT
size=2>d.santos@barcelohotels.com.do</FONT></A><FONT size=2>" resulted in a
return code of 127. Make sure the script or binary you are trying to
execute actually exists...</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><SPAN class=642441520-06052005><FONT size=2>5) misscommands.cfg
entry:</FONT></SPAN></DIV>
<DIV><SPAN class=642441520-06052005><FONT size=2># 'notify-by-email' command
definition<BR>define command{<BR>
command_name
notify-by-email<BR>
command_line /usr/bin/printf "%b" "***** Nagios
*****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost:
$HOSTALIAS$\nAdd<BR>ress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time:
$LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "**
$NOTIFICATIONTYPE$ al<BR>ert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **"
$CONTACTEMAIL$<BR> }<BR>6) Yes, I can
send mail from the command line.</FONT></SPAN></DIV>
<DIV><SPAN class=642441520-06052005><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=642441520-06052005><FONT size=2>Thanks for your
help.</FONT></SPAN></DIV>
<DIV><SPAN class=642441520-06052005><FONT size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=642441520-06052005><FONT size=2>Dywer
Santos</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT size=2>-----Mensaje
original-----<BR><B>De:</B> Bill Akins
[mailto:Bill_Akins@emoryhealthcare.org]<BR><B>Enviado el:</B> Friday, May 06,
2005 4:04 PM<BR><B>Para:</B> d.santos@barcelohotels.com.do;
nagios-users@lists.sourceforge.net<BR><B>Asunto:</B> Re: [Nagios-users]
notifications<BR><BR></FONT></DIV>
<DIV>Wow!! With that much detailed information, including: </DIV>
<DIV>1) what version of Nagios</DIV>
<DIV>2) what you have already tried</DIV>
<DIV>3) the error messages you are getting</DIV>
<DIV>4) the log file entries</DIV>
<DIV>5) current misccommands.cfg entries and </DIV>
<DIV>6) the fact that you say you absolutely can send mail from the command
line</DIV>
<DIV> </DIV>
<DIV>All of that leaves me with one possibility for what can be wrong; it
has to be an IDtenT error.</DIV>
<DIV> </DIV>
<DIV>Provide a tad more info (like the things listed above) and someone just
may be able to help you.<BR><BR>>>> "Dywer Santos -- Barcelo Hotels"
<d.santos@barcelohotels.com.do> 5/6/2005 1:04 PM >>><BR></DIV>
<DIV style="COLOR: #000000">
<DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT
size=2></FONT></DIV><SPAN class=700135316-06052005><FONT face=Arial
size=2>Hi.</FONT></SPAN></DIV>
<DIV><SPAN class=700135316-06052005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=700135316-06052005><FONT face=Arial size=2>I cannot get the
e-mail notifications working.</FONT></SPAN></DIV>
<DIV><SPAN class=700135316-06052005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=700135316-06052005><FONT face=Arial size=2>Red Hat Enterprise
Linux AS 3</FONT></SPAN></DIV>
<DIV><SPAN class=700135316-06052005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV> </DIV></DIV></BLOCKQUOTE></BODY></HTML>