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. Learn More.