[syslog-ng] Can't get program destination to work

Chuck chuck.carson at gmail.com
Fri Nov 5 14:46:36 CET 2010


I am running 3.0.4 on a solaris 10 host. I am trying to send critical and
emergency events via smtp. I have the following syntax:

destination r_smtp     { program ("/usr/local/sbin/syslog-ng-mailer.sh
$HOST" template("<$PRI>$DATE $HOST $MSG\n.\n"); ); };

It doesn't like this syntax, however this is exactly what the documentation
shows.

I have also tried the following thinking the documentation might be wrong:

destination r_smtp     { program ("/usr/local/sbin/syslog-ng-mailer.sh
$HOST"); template("<$PRI>$DATE $HOST $MSG\n.\n"); };
destination r_smtp     { program ("/usr/local/sbin/syslog-ng-mailer.sh"
template("<$PRI>$DATE $HOST $MSG\n.\n"); ); };
destination r_smtp     { program ("/usr/local/sbin/syslog-ng-mailer.sh");
template("<$PRI>$DATE $HOST $MSG\n.\n"); };

Has anyone done this or know how to send alerts via smtp?

Thanks,
CC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20101105/7b9a29b5/attachment.htm 


More information about the syslog-ng mailing list