Versions Compared

Key

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

...

Code Block
title/etc/rsyslog.conf
 *.info;mail.none;authpriv.none;cron.none;local2.none                /var/log/messages

Step #3 Configure opEvents to process SNMP trap log file

We need to tell opEvents to process the newly created snmptrap.log file.  This is done in /usr/local/omk/conf/opCommon.nmis.  Be careful with this file; in reality it is a perl hash, any syntax error will render the OMK server dead.  After modifying this file check it for syntax errors with the following command 'perl -c /usr/local/omk/conf/opCommon.nmis'.  If you are not scared you should be (smile)

We need to add something like the following example to the opevents section of opCommon.nmis. 

Code Block
title/usr/local/omk/conf/opCommon.nmis
 'opevents_logs' => {       
  'clarogt_snmptraps' => [
    '<nmis_logs>/snmptrap.log'
   ],