Perl Nagios::Plugin vs Monitoring::Plugin
Florian Lohoff <[email protected]> Fri, 8 Sep 2017 14:16:35 +0200
| Newsgroups | gmane.network.nagios.devel |
|---|---|
| Organization | rfc822 - pure communication |
| Message-ID | <20170908121634.GA23025__41188.3480650888$1504873010$gmane$org@pax.zz.de> |
--UlVJffcvxoiEqYs2
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi,
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 {=20
require Nagios::Plugin;
1;
} or do {
require Monitoring::Plugin;
}
Now i fail to find a way to get all the exports e.g.
CRITICAL/WARNING/OK/UNKNOWN.
Is there a nice generic way to support either perl module?
Flo
--=20
Florian Lohoff [email protected]
UTF-8 Test: The =F0=9F=90=88 ran after a =F0=9F=90=81, but the=
=F0=9F=90=81 ran away
--UlVJffcvxoiEqYs2
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iQIVAwUBWbKKIpDdQSDLCfIvAQobWA/+Mi65CKtA+k05QtvmJi5Aa4QMUtBPgzM4
HRlsHgFAyX2aM/I4ZrlCyjTOJnkxJlJxgos8+bQMGN2OiSjvDWUQfBUr3n455l4f
GYfcVL1tH3wsi+57haIq1As95Y6GZOk3QIIc/KmeqL73OLISEWqcy95krOSPruBZ
Sqj2YFouNaoAqGJNEVGZG4H0/pmFTkOyNt2BGFWvhNeZDrFoMheWj4TLXlYR+7Bf
BrHummVnVakKc0dCvEMhWI+qtbLI5Isq2qUtTmtSOQ8x5LLzoQvjuzVzOSFdKVJc
MMJoL798j/eKsgEI37tBWvMVmFEfTgdEqEFPaH3LtwP2XKRCp9GTLk0YbauR/+Xs
1R9yaKpjCzYf+pSLAQvtPUtTX3dayENwoL9Jnuy2W9/BQAT1FYuqFC58/5Mxrzy4
EzkK0+WSfKDqIybl0ak8rFE9YD8KrDKVcKW70pRB0n/IEur53ylYq3IsL4OZGCc9
Ip8xyqkDc2wK+HD9S2Noh/5VJ7/G/iJrN5/ZTQ53mguuwZFTBKoiOks8LFxkhGlJ
mX+Fq+5Dpxjfq/KqdyM5IaoGHUv4xmBgflA4hPBGeV032ZKhWAy3uNAwImwSJbcr
0NfNqzaRZoeWaj7Qjem72TwnIHlcgdeoo/MCjP+d73lsa5Ds1TPR+1aZSZ9lCOVI
Lw1Yl36tlgY=
=Tsrz
-----END PGP SIGNATURE-----
--UlVJffcvxoiEqYs2--