Nagios:...hreshold(3)

πŸ“¦ version 0.36, in opensuse-leap 16.0

πŸŽ€ 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 (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