$SERVICEOUTPUT$ missing from emails.. Nagios 3.2.1

Peter Kranz pkranz at unwiredltd.com
Tue Apr 20 05:34:53 CEST 2010


It's the default that comes with the .tar:

# 'notify-by-email' command definition
define command{
        command_name    notify-by-email
        command_line    /usr/bin/printf "%b" "***** Nagios
*****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time:$LONGDATETIME$\n\nAdditional
Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert -
$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
        }

-Peter

-----Original Message-----
From: Morris, Patrick [mailto:patrick.morris at hp.com] 
Sent: Monday, April 19, 2010 8:23 PM
To: Nagios Users List
Subject: Re: [Nagios-users] $SERVICEOUTPUT$ missing from emails.. Nagios
3.2.1

Peter Kranz wrote:
> Somewhere in the Nagios 3 chain we stopped receiving the $SERVICEOUTPUT$
in
> service-notify emails..  I found a few bug reports of similar issues.. we
> are on Ubuntu.. any quick fixes?
>
> It shows up in the nagios log; so the data is being passed..
>
> [1271730453] SERVICE NOTIFICATION:
> pkranz-email;lpetersen;ping-residential;OK;notify-by-email;OK -
> lpetersen.pv1: rta 16.481ms, lost 0%
>
> But does not show up in the email; We are using the default notify
> template...
>   


What's your template look like? The "default notify template" varies 
depending on several factors.  Something a bit more precise would be 
nice (especially since your problem is almost certainly with that notify 
command).

----------------------------------------------------------------------------
--
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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