[syslog-ng] syslog-ng to trigger SNMP traps
Xuan Zhong
xuan_zhong at hotmail.com
Thu Mar 18 03:14:05 CET 2010
Hi,
I wrote a script to filter out the matching syslog messages and send as SNMP traps. In syslog-ng.conf, I use:
filter f_snmp { match("XXXX" value("MESSAGE"))
destination d_snmp(program("send_trap.sh"))
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.
Can anyone provide any insight on this issue?
Thanks
Xuan
_________________________________________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID27925::T:WLMTAGL:ON:WL:en-US:WM_HMP:032010_1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20100318/e4aa62b6/attachment.htm
More information about the syslog-ng
mailing list