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]