Monitor...tResult(3)
π NAME π
okay bestie, say hi to Monitoring::Plugin::ExitResult β it's a helper class for returning both output and return codes when testing. The header spells it Monitor...tResult(3) and it's from User Contributed Perl Documentation; that truncated header is just the manual-page title energy π«Ά.
β¨ SYNOPSIS β¨
Here's the exact code vibe:
use Test::More;
use Monitoring::Plugin::Functions;
# In a test file somewhere
Monitoring::Plugin::Functions::_fake_exit(1);
# Later ...
$e = plugin_exit( CRITICAL, 'aiiii ...' );
print $e->message;
print $e->return_code;
# MP::ExitResult also stringifies to the message output
like(plugin_exit( WARNING, 'foobar'), qr/^foo/, 'matches!');
π¦ DESCRIPTION π¦
Monitoring::Plugin::ExitResult is a tiny helper class made for testing other Monitoring::Plugin modules. A Monitoring::Plugin::ExitResult object gets returned by plugin_exit() and friends when Monitoring::Plugin::Functions::_fake_exit has been set, instead of doing a conventional print + exit. That's the whole plot, and honestly? iconic ππ
.
πΈ AUTHOR πΈ
This code is maintained by the Monitoring Plugin Development Team: see https://monitoring-plugins.org
Originally: Gavin Carr , <gavin@openfusion.com.au> π
π COPYRIGHT AND LICENSE π
Copyright details, no cap:
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. Slay π
okay bestie, that's the whole page β¨ The footer source/version is perl v5.42.0 and the date is 2018-08-02 β go forth and test your modules, mwah π«Άπ
π¦ where this page comes from
- opensuse-leap 16.0: perl-Monitoring-Plugin 0.40-bp160.1.8 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms