NAME
Nagios::Monitoring::Plugin::Threshold - class for handling Nagios::Monitoring::Plugin thresholds.
SYNOPSIS
# NB: This is an internal Nagios::Monitoring::Plugin class.
# See Nagios::Monitoring::Plugin itself for public interfaces.
# Constructor
$t = Nagios::Monitoring::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;
DESCRIPTION
Internal Nagios::Monitoring::Plugin class for handling threshold data. See Nagios::Monitoring::Plugin for public interfaces.
A threshold object contains (typically) a pair of ranges, associated with a particular severity e.g.
warning => range1
critical => range2
AUTHOR
This code is maintained by the Nagios Plugin Development Team: see https://nagios-plugins.org/ .
COPYRIGHT AND LICENSE
Copyright (C) 2006-2015 Nagios Plugin Development Team
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.