Nobody ?
----- Mail original -----
De: "Samuel Mutel"
=C3=80: "Nagios Developers List"
Envoy=C3=A9: Lundi 3 Janvier 2011 13:25:21
Objet: Re: [Nagios-devel] Switch.pm and epn
The content of @INC is the following:
/var/opt/nagios/plugins
/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi
/usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.8
/usr/lib/perl5/site_perl/5.8.7
/usr/lib/perl5/site_perl/5.8.6
/usr/lib/perl5/site_perl/5.8.5
/usr/lib/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.8
/usr/lib/perl5/vendor_perl/5.8.7
/usr/lib/perl5/vendor_perl/5.8.6
/usr/lib/perl5/vendor_perl/5.8.5
/usr/lib/perl5/vendor_perl
/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi
/usr/lib/perl5/5.8.8
.
Switch.pm is located in /usr/lib/perl5/5.8.8. So the plugin should work ???
----- Mail original -----
De: "Stephen Gran"
=C3=80: [email protected]
Envoy=C3=A9: Lundi 3 Janvier 2011 11:52:23
Objet: Re: [Nagios-devel] Switch.pm and epn
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 | =
|
--------------------------------------------------------------------------
---------------------------------------------------------------------------=
---
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, an=
d,=20
should the need arise, upgrade to a full multi-node Oracle RAC database=20
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Nagios-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/lis ... gios-devel
---------------------------------------------------------------------------=
---
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, an=
d,=20
should the need arise, upgrade to a full multi-node Oracle RAC database=20
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Nagios-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/lis ... gios-devel
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]