Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
perl5 /
vendor_perl /
Monitoring /
Plugin /
Delete
Unzip
Name
Size
Permission
Date
Action
Config.pm
5.52
KB
-rw-r--r--
2014-01-20 08:42
ExitResult.pm
1.71
KB
-rw-r--r--
2014-01-20 08:42
Functions.pm
12.75
KB
-rw-r--r--
2014-12-28 07:53
Getopt.pm
22.43
KB
-rw-r--r--
2014-12-08 08:43
Performance.pm
8.04
KB
-rw-r--r--
2014-01-20 08:42
Range.pm
4.08
KB
-rw-r--r--
2014-01-20 08:42
Threshold.pm
3.19
KB
-rw-r--r--
2014-01-20 08:42
Save
Rename
package Monitoring::Plugin::ExitResult; # Tiny helper class to return both output and return_code when testing use 5.006; use strict; use warnings; # Stringify to message use overload '""' => sub { shift->{message} }; # Constructor sub new { my $class = shift; return bless { return_code => $_[0], message => $_[1] }, $class; } # Accessors sub message { shift->{message} } sub return_code { shift->{return_code} } sub code { shift->{return_code} } 1; __END__ =head1 NAME Monitoring::Plugin::ExitResult - Helper class for returning both output and return codes when testing. =head1 SYNOPSIS 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!'); =head1 DESCRIPTION Monitoring::Plugin::ExitResult is a tiny helper class intended for use when testing other Monitoring::Plugin modules. A Monitoring::Plugin::ExitResult object is returned by plugin_exit() and friends when Monitoring::Plugin::Functions::_fake_exit has been set, instead of doing a conventional print + exit. =head1 AUTHOR This code is maintained by the Monitoring Plugin Development Team: see https://monitoring-plugins.org Originally: Gavin Carr , E<lt>gavin@openfusion.com.auE<gt> =head1 COPYRIGHT AND LICENSE 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. =cut