1Monitoring::Plugin::ThrUessehrolCdo(n3t)ributed Perl DocMuomneinttoartiinogn::Plugin::Threshold(3)
2
3
4
6 Monitoring::Plugin::Threshold - class for handling Monitoring::Plugin
7 thresholds.
8
10 # NB: This is an internal Monitoring::Plugin class.
11 # See Monitoring::Plugin itself for public interfaces.
12
13 # Constructor
14 $t = Monitoring::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 Monitoring::Plugin class for handling threshold data. See
29 Monitoring::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 Monitoring Plugin Development Team: see
39 https://monitoring-plugins.org
40
42 Copyright (C) 2014 by Monitoring Plugin Team Copyright (C)
43 2006-2014 by Nagios Plugin Development Team
44
45 This library is free software; you can redistribute it and/or modify it
46 under the same terms as Perl itself.
47
48
49
50perl v5.28.0 2014-01-20 Monitoring::Plugin::Threshold(3)