$SERVICEOUTPUT$ missing from emails.. Nagios 3.2.1

Marcel mitsuto at gmail.com
Tue Apr 20 20:27:12 CEST 2010


from the docs, $SERVICEOUTPUT$ just prints the first output line. If by any
chance your plugin is outputting "\n$SERVICEOUTPUT$\n" the all you'll get
would be a blank line.

However, you can try using $LONGSERVICEOUTPUT$, as it prints everything from
plugins' output.

On Tue, Apr 20, 2010 at 2:43 PM, Peter Kranz <pkranz at unwiredltd.com> wrote:

> Confirmed:
>
> >service_notification_commands   notify-by-email
>
> Apparently some reported similar issues in the past under the 2.0 chain..
>
> > http://osdir.com/ml/network.nagios.devel/2005-11/msg00004.html
>
> -Peter
>
> -----Original Message-----
> From: Marc Powell [mailto:lists at xodus.org]
> Sent: Tuesday, April 20, 2010 4:34 AM
> To: Nagios Users List
> Subject: Re: [Nagios-users] $SERVICEOUTPUT$ missing from emails.. Nagios
> 3.2.1
>
>
> On Apr 19, 2010, at 10:34 PM, Peter Kranz wrote:
>
> > 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$
> >        }
>
> Make sure the contact is using 'notify-by-email' as their service
> notification command. There have been no reports of this as a bug so I'd
> greatly lean toward it being a configuration issue.
>
> --
> Marc
>
>
>
> ----------------------------------------------------------------------------
> --
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100420/3e7c3eab/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
-------------- next part --------------
_______________________________________________
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