SERVICEOUTPUT macro
Martin
pozda at mfservis.cz
Fri Jan 25 15:03:52 CET 2008
Yes. My fault. Of course I use $SERVICEOUTPUT$ in my config files.
I'm playing with notifications. Notify-service-by-email was working
before I upgrade to RC1.
Martin
Wheeler, JF (Jonathan) napsal(a):
> You might mean $SERVICEOUTPUT$ in your command definition
>
> Jonathan Wheeler
> e-Science Centre
> Rutherford Appleton Laboratory
>
>
>> -----Original Message-----
>> From: nagios-devel-bounces at lists.sourceforge.net
>> [mailto:nagios-devel-bounces at lists.sourceforge.net] On Behalf
>> Of Martin
>> Sent: 25 January 2008 13: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
>> }
>>
>>
>> Command definition without $SERVICEOUTPUT$ works correctly.
>>
>> define command{
>> command_name notify-service-by-email
>> command_line /usr/bin/printf "$HOSTALIAS$ " > /tmp/a.txt
>> }
>>
>>
>> Martin Pozdilek
>>
>> --------------------------------------------------------------
>> -----------
>> 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/
>> _______________________________________________
>> Nagios-devel mailing list
>> Nagios-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>>
>>
>
> -------------------------------------------------------------------------
> 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/
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>
-------------------------------------------------------------------------
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