debian man page for nagios::plugin::exitresult

Query: nagios::plugin::exitresult

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

Nagios::Plugin::ExitResult(3pm) 			User Contributed Perl Documentation			   Nagios::Plugin::ExitResult(3pm)

NAME
Nagios::Plugin::ExitResult - Helper class for returning both output and return codes when testing.
SYNOPSIS
use Test::More; use Nagios::Plugin::Functions; # In a test file somewhere Nagios::Plugin::Functions::_fake_exit(1); # Later ... $e = nagios_exit( CRITICAL, 'aiiii ...' ); print $e->message; print $e->return_code; # NP::ExitResult also stringifies to the message output like(nagios_exit( WARNING, 'foobar'), qr/^foo/, 'matches!');
DESCRIPTION
Nagios::Plugin::ExitResult is a tiny helper class intended for use when testing other Nagios::Plugin modules. A Nagios::Plugin::ExitResult object is returned by nagios_exit() and friends when Nagios::Plugin::Functions::_fake_exit has been set, instead of doing a conventional print + exit.
AUTHOR
Gavin Carr , <gavin@openfusion.com.au>
COPYRIGHT AND LICENSE
Copyright (C) 2006 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. perl v5.14.2 2010-12-03 Nagios::Plugin::ExitResult(3pm)
Related Man Pages
nagiosstats(8) - suse
jifty::plugin::authentication::password::view(3pm) - debian
nagios::plugin::getopt(3pm) - debian
nagios::plugin::performance(3pm) - debian
nagios::plugin::threshold(3pm) - debian
Similar Topics in the Unix Linux Community
Installing Dash Shell on OS X Lion
awk or sed - Convert 2 lines to 1 line
How can I do this in VI editor?
Is UNIX an open source OS ?
New UNIX and Linux History Sections