<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<br>Hi,<br><br>I wrote a script to filter out the matching syslog messages and send as SNMP traps. In syslog-ng.conf, I use:<br><br>filter f_snmp { match("XXXX" value("MESSAGE"))<br>destination d_snmp(program("send_trap.sh"))<br><br>If I use logger to manually generate the messages, the traps can be sent successfully. But if the exact same syslog message that was generated by a program, the traps were not triggered. I use syslog-ng version 3.0.5-1 x86_64.<br><br>Can anyone provide any insight on this issue?<br><br>Thanks<br>Xuan<br><a href="http://clk.atdmt.com/GBL/go/201469229/direct/01/"></a>                                               <br /><hr />Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. <a href='http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_1' target='_new'>Learn More.</a></body>
</html>