The output of $SERVICEOUTPUT$ macro is blank ?

Kyle O'Donnell nagios at isprime.org
Tue Aug 24 19:23:09 CEST 2010


might it be the double $$ ?

Additional Info:nn$SERVICEOUTPUT$" 

On Tue, 24 Aug 2010 09:57:56 -0700, Mirza Dedic <mirde at oppy.com> wrote:
> I recently upgraded my Ubuntu OS (8.04 >> 10.04) and Nagios from 3.0 to
> 3.1.2, and recently I ran into an issue where the data for
> "$SERVICEOUTPUT$" is never included in my email notification.
> 
> It is defined properly in the notification.cfg file as per below:
> 
> define command{
> 
>  command_name notify-service-by-email
> 
>  command_line /usr/bin/printf "%b" "***** Nagios *****nnNotification
> Type: $NOTIFICATIONTYPE$nnService: $SERVICEDESC$nHost:
> $HOSTALIAS$nAddress: $HOSTADDRESS$nState: $SERVICESTATE$nnDate/Time:
> $LONGDATETIME$nnAdditional Info:nn$SERVICEOUTPUT$" | /usr/bin/mail -s
"**
> $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is
> $SERVICESTATE$ **" $CONTACTEMAIL$
> 
> }
> 
> But in my email, it only has "Additional Info:" with nothing else.
> 
> How could I troubleshoot that $SERVICEOUTPUT$ is getting parsed properly
> and working? Maybe its something with my mail client?
> 
> Any help is appreciated.
> 
> Thanks. 
> 
> The Oppenheimer Group ---- CONFIDENTIAL This message is for the
> designated recipient only and may contain privileged, proprietary, or
> otherwise private information. If you have received it in error, please
> notify the sender immediately and delete the original. Any other use of
> the email by you is prohibited.

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list