...
Something like the following example needs to be added to the opevents section of opCommon.nmis.
Code Block | ||
---|---|---|
| ||
'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 | ||
---|---|---|
| ||
%hash = (
'snmptraps' => {
1 => {
IF => 1,
THEN => "plugin(snmpTrap)"
},
}, |