<DIV>I have set up nagios nagios-1.3-14.fc4 in my FC4 server, the only problem now is the email notification can't be send out. <BR>The original notify-by-email in misccommands.cfg file is like below: <BR># 'notify-by-email' command definition <BR>define command{ <BR>command_name notify-by-email <BR>command_line /usr/bin/printf "%b" "***** Nagios *****nnNotification Type: $NOTIFICATIONTYPE$nnService: $SERVIC <BR>EDESC$nHost: $HOSTALIAS$nAddress: $HOSTADDRESS$nState: $SERVICESTATE$nnDate/Time: $DATETIME$nnAdditional Info:n <BR>n$OUTPUT$" | -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ <BR>} </DIV>  <DIV><BR>I changed it to : <BR># 'notify-by-email' command definition <BR>define command{ <BR>command_name notify-by-email <BR>command_line /bin/mail "%b" "***** Nagios *****nnNotification Type: $NOTIFICATIONTYPE$nnService: $SERVIC <BR>EDESC$nHost: $HOSTALIAS$nAddress: $HOSTADDRESS$nState: $SERVICESTATE$nnDate/Time: $DATETIME$nnAdditional
 Info:n <BR>n$OUTPUT$" | -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ <BR>} </DIV>  <DIV><BR>Basically I replaced /usr/bin/printf with /bin/mail. </DIV>  <DIV> </DIV>  <DIV>In the /var/log/messages log I see the following error: <BR><BR><BR>Warning: Attempting to execute the command "/bin/mail "%b" "***** Nagios *****nnNotification Type: RECOVERYnHost: Server-1nState: UPnAddress: 10.100.1.79nInfo: PING OK - Packet loss = 0%, RTA = 0.76 msnnDate/Time: Thu Jan 26 17:48:21 EST 2006n" | -s "Host UP alert for Server-OTM!" <A href="mailto:sysadmin@www.com">sysadmin@www.com</A>" resulted in a return code of 127. Make sure the scri<I></I>pt or binary you are trying to execute actually exists... <BR><BR><BR>Any kind help is highly appreciated!!</DIV><p>
                <hr size=1> <BR> 
What are the most popular cars? Find out at <a href="http://us.rd.yahoo.com/evt=38382/_ylc=X3oDMTEzNWFva2Y2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDMmF1dG9z/*http://autos.yahoo.com/newcars/popular/thisweek.html 
">Yahoo! Autos</a>