Switch.pm and epn

Max Schubert maxs at webwizarddesign.com
Mon Jan 3 18:34:54 CET 2011


Your initial email showed perl exiting because constants were not defined .

- Max

On Mon, Jan 3, 2011 at 10:47 AM, Samuel Mutel <smutel at monitoring-fr.org> wrote:
> Nobody ?
>
> ----- Mail original -----
> De: "Samuel Mutel" <smutel at monitoring-fr.org>
> À: "Nagios Developers List" <nagios-devel at lists.sourceforge.net>
> Envoyé: 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" <steve at lobefin.net>
> À: nagios-devel at lists.sourceforge.net
> Envoyé: 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,
> --
>  --------------------------------------------------------------------------
> |  Stephen Gran                  | I'm so broke I can't even pay           |
> |  steve at lobefin.net             | 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, 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
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>
> ------------------------------------------------------------------------------
> 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
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>
> ------------------------------------------------------------------------------
> 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
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>

------------------------------------------------------------------------------
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




More information about the Developers mailing list