Re: [Nagios-devel] Switch.pm and epn

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Switch.pm and epn

Post by Guest »


--yrj/dFKFPuw6o+aM
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jan 03, 2011 at 09:47:45AM +0100, Samuel Mutel said:
> If I execute the plugin from the command line with -wc, I have the
> message check_oracle.pl syntax OK. How can I know if a mondule is
> correctly found by ePn ? Switch.pm is a standard perl module that is
> located in /usr/lib/perl5/5.8.8 directory.

My guess is that @INC isn't properly set for your ePn, for some reason.
Write a small perl script to be executed by nagios that does something
like

print join "\n", @INC;

And look for your path in that list. If it's not there, you can add the
path to @INC in your script before the use line.

Cheers,
--=20
--------------------------------------------------------------------------
| Stephen Gran | I'm so broke I can't even pay |
| [email protected] | attention. |
| http://www.lobefin.net/~steve | |
--------------------------------------------------------------------------

--yrj/dFKFPuw6o+aM
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBCAAGBQJNIapjAAoJELMRjO+K6o/uPYYQAKWJs9zQcT2urZ81tS73/QfO
kT5PKDrCj68V2SrCcrdOX1YyglnKpuX9rGlky9o3yxVsdtQ0WWHf5f5nZ2LgG1ZA
SjkEa0RlwCr3aZIAKADskbAFx+OvwKinZ6DKIi5VcHDSAPSXUtyNFS0fKS1nhrMq
STjXnUuMy9dN4V5QY5irpAzv5ES2HjuyFKWznCMvt6XDc2ab8YkaqvdEqL+sjQ8J
C30u1AHNQdp1EAY16ysANkguTOCUFzfQFAnAoiknPYvr2G6dHWP12daQPn7RFJEh
L2fyGwkRIgz4kyGAjGY9W13nYxq1ji1r7f0OdbCTV4r3IdfuW+jEjGZJg66w4OFm
urAqNukPrHY1lYGw+aKHP0GGWVS6dlvDZnaNLIkb54Tl0e484iNzKnuavrHqQFUZ
WbN529B4YCeODps2/6SDnZ7xUmNWKZrCDBFLQl/9bJw2t7BPlLl9CfKdTxPwD5rS
M4q4KL6mKDVEPW6HzW5NDx93ufQhtW9hvLnje7V6igcCRypptqQcZWKawYo/kQF1
wZkWZJ+tAX2mGNY31NLWNNdzQqVpbCtme3CiW4nG+blTUK6lA273TBwI0SPIKPdu
05Fm71iGJuKsrh3dCrQI8JFGxKceRovx/oysvAXIuCBSIB4OAPrnT6eLN6soQXGB
E1YZkr1BVMHaFknbBkou
=Y/Im
-----END PGP SIGNATURE-----

--yrj/dFKFPuw6o+aM--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked