<br>It doesn't like this synxtax either:<br><br>destination r_smtp { program ("/usr/local/sbin/syslog-ng-mailer.sh" template("$HOST <$PRI>$DATE $HOST $MSG\n"); ); };<br><br>I can't get any syntax as all working that uses the template() option.<br>
<br>-Chuck<br><br><div class="gmail_quote">On Fri, Nov 5, 2010 at 6:57 AM, Sandor Geller <span dir="ltr"><<a href="mailto:Sandor.Geller@morganstanley.com">Sandor.Geller@morganstanley.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<div class="im"><br>
On Fri, Nov 5, 2010 at 2:46 PM, Chuck <<a href="mailto:chuck.carson@gmail.com">chuck.carson@gmail.com</a>> wrote:<br>
><br>
</div><div class="im">> I am running 3.0.4 on a solaris 10 host. I am trying to send critical and<br>
> emergency events via smtp. I have the following syntax:<br>
><br>
> destination r_smtp { program ("/usr/local/sbin/syslog-ng-mailer.sh<br>
> $HOST" template("<$PRI>$DATE $HOST $MSG\n.\n"); ); };<br>
<br>
</div>Maybe you misunderstood the example.<br>
<div class="im"><br>
program ("/usr/local/sbin/syslog-ng-mailer.sh $HOST"<br>
<br>
</div>is bad, the whole string including the space and $HOST is treated as<br>
the program name... Instead of that use<br>
<br>
program ("/usr/local/sbin/syslog-ng-mailer.sh" template(...<br>
<br>
hth,<br>
<font color="#888888"><br>
Sandor<br>
</font></blockquote></div><br>