Re: [Nagios-devel] SERVICEOUTPUT macro
Posted: Fri Jan 25, 2008 5:54 am
You might mean $SERVICEOUTPUT$ in your command definition
Jonathan Wheeler
e-Science Centre
Rutherford Appleton Laboratory
> -----Original Message-----
> From: [email protected]=20
> [mailto:[email protected]] On Behalf=20
> Of Martin
> Sent: 25 January 2008 13:51
> To: Nagios Developers List
> Subject: [Nagios-devel] SERVICEOUTPUT macro
>=20
>=20
> Hi
>=20
> It seems that the SERVICEOUTPUT macro is not working in Nagios 3 RC1.
>=20
> I defined simple command for saving notification (serviceoutput) to=20
> file. This definition does not write to file.
>=20
> define command{
> command_name notify-service-by-email
> command_line /usr/bin/printf "$HOSTALIAS$=20
> $SERVICEOUTPUT" >=20
> /tmp/a.txt
> }
>=20
>=20
> Command definition without $SERVICEOUTPUT$ works correctly.
>=20
> define command{
> command_name notify-service-by-email
> command_line /usr/bin/printf "$HOSTALIAS$ " > /tmp/a.txt
> }
>=20
>=20
> Martin Pozdilek
>=20
> --------------------------------------------------------------
> -----------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel
>=20
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Jonathan Wheeler
e-Science Centre
Rutherford Appleton Laboratory
> -----Original Message-----
> From: [email protected]=20
> [mailto:[email protected]] On Behalf=20
> Of Martin
> Sent: 25 January 2008 13:51
> To: Nagios Developers List
> Subject: [Nagios-devel] SERVICEOUTPUT macro
>=20
>=20
> Hi
>=20
> It seems that the SERVICEOUTPUT macro is not working in Nagios 3 RC1.
>=20
> I defined simple command for saving notification (serviceoutput) to=20
> file. This definition does not write to file.
>=20
> define command{
> command_name notify-service-by-email
> command_line /usr/bin/printf "$HOSTALIAS$=20
> $SERVICEOUTPUT" >=20
> /tmp/a.txt
> }
>=20
>=20
> Command definition without $SERVICEOUTPUT$ works correctly.
>=20
> define command{
> command_name notify-service-by-email
> command_line /usr/bin/printf "$HOSTALIAS$ " > /tmp/a.txt
> }
>=20
>=20
> Martin Pozdilek
>=20
> --------------------------------------------------------------
> -----------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel
>=20
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]