Switch.pm and epn

Stephen Gran steve at lobefin.net
Mon Jan 3 11:52:23 CET 2011


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,
-- 
 --------------------------------------------------------------------------
|  Stephen Gran                  | I'm so broke I can't even pay           |
|  steve at lobefin.net             | attention.                              |
|  http://www.lobefin.net/~steve |                                         |
 --------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20110103/50059c84/attachment.sig>
-------------- next part --------------
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list