Versions Compared

Key

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

1. Overview

...

It is important to clarify that on Linux at least, the load average and CPU utilisation are actually two different things. Load average is a measurement of how many tasks are waiting  for the CPU (not just CPU time but also disk activity) over a period of time. CPU utilisation is a measure of how busy the CPU is right now. The most load that a single CPU thread pegged at 100% for one minute can "contribute" to the 1 minute load average is 1. A 4 core CPU with hyper-threading (8 virtual cores) all at 100% for 1 minute would contribute 8 to the 1 minute load average.

If you are not familiar with these concepts, here you can find detailed information about Understanding Linux CPU Load and Linux Load Averages.

2. Set up your environment

...

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.

...

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--

...