By itself, no, but by using a similar method for logging to a database you
can.

create a script to call snmptrap (/opt/scripts/sendtraps):
#!/bin/bash
while read LINE
  do
    snmptrap .... $LINE
done

then set up a destination in the syslog-ng.conf file:
  destination traps { program("/opt/scripts/sendtraps"); };

Send whatever you want through the destination, filtering it as need.d

Jamie

On Thu, February 23, 2006 7:32 am, Ben Ruset wrote:
> Thanks. I have not had a chance to mess with any of this yesterday, but
> hopefully today I will be able to.
>
> Do you also know if you can have Syslog-NG send out SNMP alerts if there
> are certain events in logs?
>
> Jamie Furtner wrote:
>
>> Have you checked to see if the SYSLOG traffic is hitting the server? A
>> tcpdump should show the traffic.
>>
>> Other then the MySQL logging, I'm not doing that much different with my
>>  config - I've used remote logging in the past.
>>
>> Try running syslog-ng in debug mode (syslog -d) to see if the traffic
>> comes through and gets filtered.
>
>


-- 
Jamie Furtner [EMAIL PROTECTED]
"I aim to misbehave"
    - Malcom Reynolds (Serenity movie)
"It's not safe...
"For them."
    - River Tam (Serenity movie)


Reply via email to