...
Configure a Contact
A 'contact' in 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.
Code Block | ||
---|---|---|
| ||
'opevents' => { 'black_list_enabled' => 'true', 'log_archive_enabled' => 'true', 'nmis_non_stateful_events' => 'Node Configuration Change|Node Reset', 'opevents_action_max_runtime' => 30, 'opevents_action_policy' => '<omk_conf>/EventActions.nmis', 'opevents_application_heading' => undef, 'opevents_archivelogs_purge_older_than' => undef, 'opevents_auto_acknowledge' => 'true', 'opevents_auto_acknowledge_up' => 'true', 'opevents_auto_create_nodes' => 'true', 'opevents_contacts' => '<omk_conf>/Contacts.nmis', |
...
Code Block | ||
---|---|---|
| ||
%hash = ( 'contact1' => { 'Contact' => 'Contact1', 'Phone' => '', 'DutyTime' => '06:20:MonTueWedThuFri', 'Level' => '(Fatal|Critical|Major|Minor|Warning|Normal)', 'TimeZone' => '0', 'Pager' => '', 'Mobile' => '5555551234', 'Location' => 'default', 'Email' => 'nobody@localhost', 'EmailTemplate' => 'default', } ); |
For more information about how to configure Contacts.nmis for use by NMIS see this page: NMIS8 Contacts
...
For more information about creating Escalation policies see this page: Event Actions and Escalation
...
An action is required that will invoke the escalation policy. Actions are also created in the 'policy' section of EventActions.nmis. The opEvents administrator will determine where best to place the rule with EventActions.nmis. Here is one example.
...
In this example any event with a priority greater than or equal to or greater than 5 will fire the escalation policy 'exampleEmailPolicy. Because the BREAK attribute is set to false, any rules following this one in the same hierarchy will continue to be processed.
Fore For more information about action policies Action Policies see this page: Event Actions and Escalation
...