Versions Compared

Key

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

...

NOTE - This guide requires you to be familiar with Perl and Linux operating systemsOperating Systems. Helpful resources on these topics can be located here - Learning and Understanding Perl and here - Introduction to the Linux Operating System

Creating your Email Server

If this is not already configured by you then you will need to create your email server. opEvents requires an email server in order to sent notifications via email.  This email server is configured in /usr/local/omk/conf/opCommon.nmis.

  1. Follow the Wiki guide and set up your Email server
    a. Information on setting up an Email server can be found here - Create Email Server

Configure Contacts

A 'contact' is a variable that can represent one or many email addresses.  opEvents can utilize the NMIS contacts file (/usr/local/nmis8/conf/Contact.nmis) or the OMK contacts (/usr/local/omk/conf/COntacts.nmis) file.  In order to determine which file your system is using look in opCommon.nmis; find the opevents section then look for the opevents_contacts attribute.

  1. Follow the Wiki guide to assist in setting up your Contacts - Configure Contacts

Creating your policy

The action policy is configured in in /usr/local/omk/conf/EventActions.nmis, primarily in the section named policy. The policy consists of any number of nested if-this-then-that clauses, which specify the  the conditions an event must conform to and what actions to take in case of a match. Further configuration sections specific to particular actions can be present in the same file. It may be helpful to look at the default policies in the file to get an idea of how to structure your own.

  1. Edit the /usr/local/omk/conf/EventActions.nmis file with your desired text editor.
    a. View the example listed on this page - Event Actions and Escalation
    b. vi /usr/local/omk/conf/EventActions.nmis
    c.