Versions Compared

Key

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

...

NMIS adds the server where it is hosted as “localhost” and the model used is “Net-snmp”, the model and the related files are usually stored in: /usr/local/nmis8/models/



Access You need to access the VM via SSH to edit the configuration files, the default credentials for the VM are: 

...

Warning
iconfalse
titleImportant
It is important to verify the sintaxis syntax of the edited files, remember to use: perl -c filename  after saving the changes.

3. Creating a new threshol

...

d

As mentioned before, we will be creating a threshold for the Linux “System Load Averages”, we want to generate events when current values exceed the thresholdsthreshold.




First, we need to open the Model, in this case /usr/local/nmis8/model/Model-net-snmp.nmis and identify the item that we need to modify.

...

Code Block
title/usr/local/nmis8/model/Model-net-snmp.nmis
--snip--
      'laload' => {
        'threshold' => 'laload_threshold',
        'graphtype' => 'laload',
        'snmp' => {
          'laLoad1' => {
            'oid' => 'laLoad.1',
            'option' => 'gauge,0:U'
          },
          'laLoad5' => {
            'oid' => 'laLoad.2',
            'option' => 'gauge,0:U'
          }
        }   
      },
--snip--



We add the threshold values to /usr/local/nmis8/models/Common-threshold.nmis, using the name specified before. The event name must include "Proactive" at the beginning.

Code Block
%hash = (
  'threshold' => {
    'name' => {
      'laload_threshold' => {
        'item' => 'laLoad5',
        'event' => 'Proactive System Load',
        'select' => {
          'default' => {
            'value' => {
              'fatal' => '5',
              'critical' => '2',
              'major' => '1',          
              'minor' => '0.8',
              'warning' => '0.7'
            }
          }
        }
      },
--snip--

...

- In blue, the name of the 'itemholding the variable, mentioned just a step beforesee 'item' in blue box in the Common-stats.nmis pictre above.

- In magenta, the name of the data source specified in the model inside the rrd section, in this case is “laLoad5"

...

Now, we have set up properly out thresholds our threshold for "Linux System Load"