[Nagios-devel] SERVICEOUTPUT macro

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] SERVICEOUTPUT macro

Post by Guest »

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 post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked