Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
/
Leveraging NMIS Dependancy in opEvents
Updated Nov 17, 2019

    Leveraging NMIS Dependancy in opEvents

    Nov 17, 2019
      • 1 Configure NMIS Escalation Levels
      • 2 Configure NMIS with a JSON escalation at Level1
      • 3 Configure opEvents to use JSON logs
      • 4 Restart the opEvents Daemon

      To have the NMIS dependancy feature flow through the system, you will need to engage the NMIS escalation system which gives NMIS the opportunity for the dependancy analysis.

      NMIS will continue to log events to the nmis event log but opEvents will be configured to use the JSON event directory.

      For this to work as expected NMIS 8.6.8G should be used, or at least the notify::logJsonEvent should be backported from NMIS 8.6.8G.

      If you are using opCharts, you can easily get automatic dependancies configured using the opCharts subnet tool described here opCharts Node Dependancy Management (Root Cause Analysis).

      Configure NMIS Escalation Levels

      Access the NMIS System configuration using the menu: "System → System Configuration → NMIS Configuration", select the "escalation" section, update the settings to be as below.

      Alternatively, modify /usr/local/nmis8/conf/Config.nmis and change the escalation levels.

        'escalation' => { 'escalate0' => '0', # now 'escalate1' => '60', # 1 minute 'escalate2' => '180', # 3 minutes 'escalate3' => '360', # 6 minutes 'escalate4' => '900', # 15 minutes 'escalate5' => '1800', # 30 minutes 'escalate6' => '3600', # 1 hour 'escalate7' => '7200', # 2 hours 'escalate8' => '10800', # 3 hours 'escalate9' => '21600', # 6 hours 'escalate10' => '43200' # 12 hours },

      Configure NMIS with a JSON escalation at Level1

      Configure NMIS to send JSON events at escalate1, you can do this through the GUI using the menu option "System → System Configuration → Escalation Policy", then edit the default entry and add "json:server" at Level 1 and click "Edit".

      Configure opEvents to use JSON logs

      Configure opEvents to use the JSON event directory instead of the NMIS event log.

      /usr/local/omk/conf/opCommon.nmis

      Comment or remove the nmis_eventlog section, add a section for nmis_json_dir

          'opevents_logs' => {       'cisco_compatible' => [         '<nmis_logs>/cisco.log'       ],          #'nmis_eventlog' => [       #  '<nmis_logs>/event.log'       #],         'nmis_json_dir' => [         '<nmis_logs>/json',       ],     },

      Restart the opEvents Daemon

      service opeventsd restart

       

      Now events will arrive in opEvents from the JSON folder, but these will have been delayed about 60 seconds and already had dependancy analysis done, and possibly flap events will reduce.

       

       

        Community Home

        opEvents
        • Downloads
          Downloads
        Results will update as you type.
        • API
        • Archive Logging
        • Configuration
          • Configuring opEvents
          • Configuring opEvents to send SNMP Traps
          • ex_ import devices from nmis
          • Leveraging NMIS Dependancy in opEvents
          • Leveraging opEvents and opConfig to Automate Operational Changes
          • opEvents Configuration Settings
          • opEvents EventParserRules - Adding Rules For SNMP Traps and Syslog Messages
          • opEvents input sources
          • Purging of old data in opEvents
        • FAQ
        • Features
        • How-To Guides
        • Introduction & Setup
        • opEvents Create filters for Current Events
        • opEvents Realtime Events
        • Parser Plugins using the opEvents object
        • Release Notes
        • opEvents Event Panels
          Questions
          Calendars

        You‘re viewing this with anonymous access, so some content might be blocked.
        {"serverDuration": 12, "requestCorrelationId": "e76be06d26d8458fb18ec0850b1774be"}