<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Appreciate the support for this problem. Got it fixed and wanted to put the info here hoping it helps someone in the future.<br><br>Problem was a missing double quote from the notify-service-by-email command. I could see the Notification being generated in nagios.log but thats all.<br><br>From the command line as the Nagios user, I ran the following exactly as is with the addition of a $CONTACTEMAIL$:<br><br>/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $<br>SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAddition<br>al Info:\n\n$SERVICEOUTPUT$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $S<br>ERVICESTATE$ **" $CONTACTEMAIL$<br><br>The result was a " > " prompt. I the ran the same command up to the pipe for/usr/sbin/mail and still got the " > " prompt. Once I added the " after the n$SERVICEOUTPUT$\n", it worked.<br><br>I did run a verify a couple of times (/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg ) during troubleshooting but the verify did not pick up the error.<br><br>Thanks Again for the help, hope this helps someone in the future.<br><br>Steve<br><br><div><hr id="stopSpelling">Date: Sun, 4 Sep 2011 11:29:54 +0530<br>From: dey.ranjib@gmail.com<br>To: nagios-users@lists.sourceforge.net<br>Subject: Re: [Nagios-users] Email notifications not getting Out<br><br>also, check if sendmail is running,<br><br><div class="ecxgmail_quote">On Sun, Sep 4, 2011 at 7:23 AM, Terry Carmen <span dir="ltr"><<a href="mailto:terry@cnysupport.com">terry@cnysupport.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="padding-left: 1ex;">
<u></u>
<div>
<BR><div class="ecxim">
> Verified in nagios.log, the notification was created but nothing ever shows<br>
> up in /var/log/mail. Last time I show something in /var/log/mail,<br>
> was Aug 23.<br>
<br></div>
What does your etc/objects/commands.cfg notify-service-by-email command definition look like?<br>
<br>
What does "/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg" say when it runs?<br>
<br>
Terry<br>
<br>
<br>
<br>
<font color="#888888">
--<br>
Terry Carmen<br>
CNY Support, LLC<br>
Web. Database. Business.<br>
<a href="http://www.cnysupport.com" target="_blank">http://www.cnysupport.com</a>
<BR>
</font></div>
<br>------------------------------------------------------------------------------<br>
Special Offer -- Download ArcSight Logger for FREE!<br>
Finally, a world-class log management solution at an even better<br>
price-free! And you'll get a free "Love Thy Logs" t-shirt when you<br>
download Logger. Secure your free ArcSight Logger TODAY!<br>
<a href="http://p.sf.net/sfu/arcsisghtdev2dev" target="_blank">http://p.sf.net/sfu/arcsisghtdev2dev</a><br>_______________________________________________<br>
Nagios-users mailing list<br>
<a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><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<br></blockquote></div><br>
<br>------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev<br>_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null</div> </div></body>
</html>