Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Step #1 - Configure snmptrapd to forward traps to rsyslog

An Below is an example of configuring snmptrapd to send traps to rsyslog.  The '-Ls' flag tells snmptrapd to send logging output to syslog.  Using '-Ls 2' specifies that snmptrapd will send it with the local2 facility value.  The facility value is what rsyslog keys on for routing decisions.

Code Block
title/etc/sysconfig/snmptrapd
 OPTIONS="-n -Ls 2 -p /var/run/snmptrapd.pid -m ALL -M /usr/local/nmis8/mibs/traps"