Appreciate the support for this problem.  Got it fixed and wanted to put the 
info here hoping it helps someone in the future.

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.

>From the command line as the Nagios user, I ran the following  exactly as is 
>with the addition of a $CONTACTEMAIL$:

/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: 
$NOTIFICATIONTYPE$\n\nService: $
SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: 
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAddition
al Info:\n\n$SERVICEOUTPUT$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ 
Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $S
ERVICESTATE$ **" $CONTACTEMAIL$

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.

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.

Thanks Again for the help, hope this helps someone in the future.

Steve

Date: Sun, 4 Sep 2011 11:29:54 +0530
From: dey.ran...@gmail.com
To: nagios-users@lists.sourceforge.net
Subject: Re: [Nagios-users] Email notifications not getting Out

also, check if sendmail is running,

On Sun, Sep 4, 2011 at 7:23 AM, Terry Carmen <te...@cnysupport.com> wrote:



    
        
    
    
        
            > Verified in nagios.log, the notification was created but nothing 
ever shows

            > up in /var/log/mail.  Last time I show something in /var/log/mail,

            > was Aug 23.

            

            What does your  etc/objects/commands.cfg notify-service-by-email 
command definition look like?

            

            What does "/usr/local/nagios/bin/nagios -v 
/usr/local/nagios/etc/nagios.cfg" say when it runs?

            

            Terry

            

            

            

        
        
            --

            Terry Carmen

            CNY Support, LLC

            Web. Database. Business.

            http://www.cnysupport.com
        
    

------------------------------------------------------------------------------

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
_______________________________________________

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



------------------------------------------------------------------------------
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
_______________________________________________
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          
                          
------------------------------------------------------------------------------
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
_______________________________________________
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

Reply via email to