Versions Compared

Key

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

...

Something like the following example needs to be added to the opevents section of opCommon.nmis. 

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

Modify EventParserRules.nmis

EventParserRules.nmis is where parsing generally occurs.  In this case we are anticipating some complex maneuvers; so we are going to tell EventParserRules to send this to an opEvents plugin where complexity is better dealt with.  Remember all that big bad syntax talk?  Same applies here.

Something like the following example needs to be added to EventParserRules.nmis

Code Block
title/usr/local/omk/conf/EventParserRules.nmis
%hash = (
        'snmptraps' => {
                1 => {
                        IF => 1,
                        THEN => "plugin(snmpTrap)"
                },
        },