25 Jul 2018 20:17:23 UTC
- Distribution: Monitoring-Plugin
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Issues (6)
- Testers (610 / 0 / 0)
- KwaliteeBus factor: 3
- 89.24% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity24 month
- Download (61.57KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:2 non-PAUSE usersNIERLEIN Sven Nierleinand 2 contributors
- This code is maintained by the Monitoring Plugin Development Team: see
- Monitoring Plugin Team
Monitoring::Plugin::Threshold - class for handling Monitoring::Plugin thresholds.
# NB: This is an internal Monitoring::Plugin class. # See Monitoring::Plugin itself for public interfaces. # Constructor $t = 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;
Internal Monitoring::Plugin class for handling threshold data. See 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
This code is maintained by the Monitoring Plugin Development Team: see https://monitoring-plugins.org
Copyright (C) 2014 by Monitoring Plugin Team Copyright (C) 2006-2014 by Nagios Plugin Development Team
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Module Install Instructions
To install Monitoring::Plugin, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Monitoring::Plugin
For more information on module installation, please visit the detailed CPAN module installation guide.