Nagios::Plugin::ExitResult man page on Fedora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Fedora logo
[printable version]

Nagios::Plugin::ExitReUser(Contributed Perl DocumNagios::Plugin::ExitResult(3)

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.1			  2010-12-03	 Nagios::Plugin::ExitResult(3)
[top]

List of man pages available for Fedora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net