Nagios::Plugin::Threshold(3pm)

Nagios::Plugin::Threshold3pm

Class for handling nagios::plugin thresholds.

Usage

    # NB: This is an internal Nagios::Plugin class.
    # See Nagios::Plugin itself for public interfaces.
  
    # Constructor
    $t = Nagios::Plugin::Threshold->set_thresholds(
        warning  => $warning_range_string,
        critical => $critical_range_string,
    );
    # Value checking - returns CRITICAL if in the critical range,
    # WARNING if in the warning range, and OK otherwise
    $status = $t->get_status($value);
    # Accessors - return the associated N::P::Range object
    $warning_range  = $t->warning;
    $critical_range = $t->critical;

Overview

Internal Nagios::Plugin class for handling threshold data. See Nagios::Plugin for public interfaces.

A threshold object contains (typically) a pair of ranges, associated with a particular severity e.g.

  warning  => range1
  critical => range2

Releases

3 releases since Debian 6.0 (Squeeze); the text changed 1 time.

  1. 6.0
  2. 7–8

Author

This code is maintained by the Nagios Plugin Development Team: see http://nagiosplug.sourceforge.net.

From libnagios-plugin-perl 0.36-1 in Debian 8 (Jessie). Parsed by carta from the page's man source.