5 Nov
2010
5 Nov
'10
1:57 p.m.
Hi, On Fri, Nov 5, 2010 at 2:46 PM, Chuck <chuck.carson@gmail.com> wrote:
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"); ); };
Maybe you misunderstood the example. program ("/usr/local/sbin/syslog-ng-mailer.sh $HOST" is bad, the whole string including the space and $HOST is treated as the program name... Instead of that use program ("/usr/local/sbin/syslog-ng-mailer.sh" template(... hth, Sandor