SERVICEOUTPUT macro

Thomas Guyot-Sionnest Thomas at zango.com
Fri Jan 25 19:03:52 CET 2008


> -----Original Message-----
> From: nagios-devel-bounces at lists.sourceforge.net [mailto:nagios-devel-
> bounces at lists.sourceforge.net] On Behalf Of Martin
> Sent: January 25, 2008 8:51
> To: Nagios Developers List
> Subject: [Nagios-devel] SERVICEOUTPUT macro
> 
> Hi
> 
> It seems that the SERVICEOUTPUT macro is not working in Nagios 3 RC1.
> 
> I defined simple command for saving notification (serviceoutput) to
> file. This definition does not write to file.
> 
> define command{
>         command_name    notify-service-by-email
>         command_line    /usr/bin/printf "$HOSTALIAS$ $SERVICEOUTPUT" >
> /tmp/a.txt
> }

Missing $ in SERVICEOUTPUT

Thomas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/




More information about the Developers mailing list