1Nagios::Plugin::ThreshoUlsde(r3)Contributed Perl DocumenNtaagtiioosn::Plugin::Threshold(3)
2
3
4
6 Nagios::Plugin::Threshold - class for handling Nagios::Plugin
7 thresholds.
8
10 # NB: This is an internal Nagios::Plugin class.
11 # See Nagios::Plugin itself for public interfaces.
12
13 # Constructor
14 $t = Nagios::Plugin::Threshold->set_thresholds(
15 warning => $warning_range_string,
16 critical => $critical_range_string,
17 );
18
19 # Value checking - returns CRITICAL if in the critical range,
20 # WARNING if in the warning range, and OK otherwise
21 $status = $t->get_status($value);
22
23 # Accessors - return the associated N::P::Range object
24 $warning_range = $t->warning;
25 $critical_range = $t->critical;
26
28 Internal Nagios::Plugin class for handling threshold data. See
29 Nagios::Plugin for public interfaces.
30
31 A threshold object contains (typically) a pair of ranges, associated
32 with a particular severity e.g.
33
34 warning => range1
35 critical => range2
36
38 This code is maintained by the Nagios Plugin Development Team: see
39 http://nagiosplug.sourceforge.net.
40
42 Copyright (C) 2006-2007 Nagios Plugin Development Team
43
44 This library is free software; you can redistribute it and/or modify it
45 under the same terms as Perl itself.
46
47
48
49perl v5.12.1 2010-04-15 Nagios::Plugin::Threshold(3)