...
Step #3 Configure opEvents to process SNMP trap log file
Modify opCommon.nmis
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
...
Code Block | ||
---|---|---|
| ||
'opevents_logs' => { 'clarogt_snmptraps' => [ '<nmis_logs>/snmptrap.log' ], |
Modify EventParserRules.nmis