[Nagiosplug-devel] N::P wrapper functions for max_state/max_state_alt

Thomas Guyot-Sionnest dermoth at aei.ca
Wed Jan 9 07:01:10 CET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I patched N::P to add a max_state_alt in Functions.pm and wrapper
functions in Nagios/Plugin.pm. I'm not sure if it's right, but I tested
with both Nagios::Plugin::max_state() and $np->max_state() and they both
seems to work, even though in the latter the first argument passed to
max_stats is a reference to an object.

I'm not sure if it's the right way to do it... If anyone with knowledge
of Perl packages can review it that would be greatly appreciated.

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHhGMl6dZ+Kt5BchYRAtUPAKDj8iEUlVY7B+elIajhYTwJr5eHzACeNNTo
9INtsv5b2xq8nh7BEdteTjg=
=ua41
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: N__P.max_state_alt.patch
Type: text/x-diff
Size: 2746 bytes
Desc: not available
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20080109/cac76e02/attachment.patch>


More information about the Devel mailing list