This plugin provides native load instrumentation for monitoring and metrics collection, including: load health, and total or per core metrics.
Ruby
Latest commit 408a996 Jan 17, 2017 @woltage woltage committed with sstarcher Added more information to check-load.rb output (#13)
* Added more information to check-load.rb output

* Fixes RuboCop tests

README.md

Sensu-Plugins-load-checks

Build Status Gem Version Code Climate Test Coverage Dependency Status

Functionality

Files

  • bin/check-load.rb
  • bin/metrics-load.rb

Usage

check-load.rb

To see the list of full options you can run:

$ ./bin/check-load.rb --help
Usage: ./bin/check-load.rb (options)
    -c, --crit L1,L5,L15             Load CRITICAL threshold, 1/5/15 min average
    -p, --per-core                   Divide load average results by cpu/core count
    -w, --warn L1,L5,L15             Load WARNING threshold, 1/5/15 min average

This check will only work on linux systems as it relies on cat /proc/loadavg and cat /proc/cpuinfo. The check now defaults to using the per_core option which will take the loadavg and divide by the number of cores. You can use -w/-c with a comma separated value for 1/5/15 minute thresholds.

Installation

Installation and Setup

Notes