Nagios::Plugin::Performance - Performance information in a perl object
use Nagios::Plugin::Performance; @p = Nagios::Plugin::Performance->parse_perfstring("/=382MB;15264;15269;; /var=218MB;9443;9448"); print "1st label = ", $p[0]->label, $/; print "1st uom = ", $p[0]->uom, $/; print "2nd crit = ", $p[1]->threshold->critical, $/;
Handles common Nagios Plugin performance data. This has a public interface because it could be used by performance graphing routines, such as nagiostat (http://nagiostat.sourceforge.net), perfparse (http://perfparse.sourceforge.net), nagiosgraph (http://nagiosgraph.sourceforge.net) or NagiosGrapher (http://www.nagiosexchange.org/NagiosGrapher.84.0.html).
Once the performance string has been parsed, you can query the label, value, uom, or thresholds.
Returns an array of Nagios::Plugin::Performance objects based on the string entered. If there is an error parsing the string, undef is returned.
These all return scalars. min and max are not well supported yet.
This returns a Nagios::Plugin::Threshold object.
Nagios::Plugin for information about versioning.
http://nagiosplug.sourceforge.net
Ton Voon, <ton.voon@altinity.com>
Copyright (C) 2006 by Altinity Limited
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available.
2 POD Errors
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
'=item' outside of any '=over'
To install Nagios::__::Plugin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Nagios::__::Plugin
CPAN shell
perl -MCPAN -e shell install Nagios::__::Plugin
For more information on module installation, please visit the detailed CPAN module installation guide.