...
Code Block | ||
---|---|---|
| ||
OPTIONS="-n -Ls 2 -p /var/run/snmptrapd.pid -m ALL -M /usr/local/nmis8/mibs/traps" |
Step #2 - Configure rsyslog to route traps into a specified log file
We need the traps to be placed into a specified log file that opEvents will process. The following example states that all messages with a facility of local2 will be placed in the /usr/local/nmis8/logs/snmptrap.log file.
Code Block | ||
---|---|---|
| ||
local2.* /usr/local/nmis8/logs/snmptrap.log |