Nagios:...hreshold(3)
π NAME π
okay bestie, welcome to the Nagios::Plugin::Threshold page β the header calls it Nagios:...hreshold(3) and files it under User Contributed Perl Documentation π
Nagios::Plugin::Threshold is literally the class for handling Nagios::Plugin thresholds π
β¨ SYNOPSIS β¨
okay so this is internal tea, no cap β if you want the public interfaces, go check Nagios::Plugin itself. Here's the whole vibe:
# 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;
πΈ DESCRIPTION πΈ
Internal Nagios::Plugin class for handling threshold data. Public interfaces? That's Nagios::Plugin, bestie β it's giving βgo look over thereβ energy.
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 http://nagiosplug.sourceforge.net. They're the main characters keeping it iconic π.
π COPYRIGHT AND LICENSE π
Copyright (C) 2006-2007 Nagios Plugin Development Team
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
okay bye bestie π«Ά this page is from the Nagios:...hreshold(3) manual, built with perl v5.42.0, dated 2024-03-04 β slay and stay threshold-safe π
π¦ where this page comes from
- opensuse-leap 16.0: perl-Nagios-Plugin 0.36-bp160.1.8 Β· Artistic-1.0 or GPL-2.0+
- opensuse-leap 16.0: perl-Nagios-Plugin 0.36-bp160.1.8 Β· Artistic-1.0 or GPL-2.0+
- opensuse-leap 16.0: perl-Nagios-Plugin 0.36-bp160.1.8 Β· Artistic-1.0 or GPL-2.0+
- opensuse-leap 16.0: perl-Nagios-Plugin 0.36-bp160.1.8 Β· Artistic-1.0 or GPL-2.0+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms