Perl Nagios::Plugin vs Monitoring::Plugin

Florian Lohoff f at
Fri Sep 8 14:16:35 CEST 2017


i am trying to have perl checks supported on hosts from Debian/Squeeze
up to Debian/Stretch. Squeeze->Jessie have Nagios::Plugin,
Wheezy->Stretch have Monitoring plugin.

So i was trying around in loading one or the other conditionally

	eval { 
		require Nagios::Plugin;
	} or do {
		require Monitoring::Plugin;

Now i fail to find a way to get all the exports e.g.

Is there a nice generic way to support either perl module?

Florian Lohoff                                                 f at
             UTF-8 Test: The 🐈 ran after a 🐁, but the 🐁 ran away
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <>

More information about the Devel mailing list