Re: [Nagios-users] Check_oracle_health plugin error
Hi Marc, if DBD::Oracle has been installed correctly, then maybe your LD_LIBRARY_PATH does not include the directory where Oracle's libclntsh.so resides. In order to run check_oracle_health you must have a working environment with ORACLE_HOME, TNS_ADMIN,... Gerhard > -Ursprüngliche Nachricht- > Von: Marc Powell [mailto:m...@ena.com] > Gesendet: Donnerstag, 10. September 2009 16:03 > An: nagios List > Betreff: Re: [Nagios-users] Check_oracle_health plugin error > > > On Sep 10, 2009, at 1:01 AM, > wrote: > > > Hi Gerhard, > > > > Thanks for the suggestion... After compiling the plugin > when I try to > > run on the command line I am getting the error. > > > > > > ./check_oracle_health -connect=nagios/nag...@sisdev -mode=tnsping > > CRITICAL - cannot connect to nagios/nag...@sisdev. install_driver > > (Oracle) failed: Can't locate DBD/Oracle.pm in @INC (@INC > > contains: . > /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi / > > usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi > /usr/lib/perl5/ > > site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/ > > 5.8.5/i386-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/lib/perl5/ > > vendor_perl/5.8.8/i386-linux-thread-multi > /usr/lib/perl5/vendor_perl/ > > 5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386- > > linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-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/lib/perl5/5.8.8/ > > i386-linux-thread-multi /usr/lib/perl5/5.8.8) at (eval 13) line 3. > > Perhaps the DBD::Oracle perl module hasn't been fully installed, or > > perhaps the capitalisation of 'Oracle' isn't right. > > Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge. > > at ./check_oracle_health line 3973 > > > > Perl and DBI are compiled. > > It says you don't have the required perl module DBD::Oracle > installed. > Do you? If you believe you do, it's appears that it is not > installed correctly. > > -- > Marc > > > -- > > Let Crystal Reports handle the reporting - Free Crystal > Reports 2008 30-Day trial. Simplify your report design, > integration and deployment - and focus on what you do best, > core application coding. Discover what's new with Crystal > Reports now. http://p.sf.net/sfu/bobj-july > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS > when reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Check_oracle_health plugin error
On Sep 10, 2009, at 1:01 AM, wrote: > Hi Gerhard, > > Thanks for the suggestion... After compiling the plugin when I try > to run on the command line I am getting the error. > > > ./check_oracle_health -connect=nagios/nag...@sisdev -mode=tnsping > CRITICAL - cannot connect to nagios/nag...@sisdev. install_driver > (Oracle) failed: Can't locate DBD/Oracle.pm in @INC (@INC > contains: . /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi / > usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/ > site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/ > 5.8.5/i386-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/lib/perl5/ > vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/ > 5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386- > linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-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/lib/perl5/5.8.8/ > i386-linux-thread-multi /usr/lib/perl5/5.8.8) at (eval 13) line 3. > Perhaps the DBD::Oracle perl module hasn't been fully installed, > or perhaps the capitalisation of 'Oracle' isn't right. > Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge. > at ./check_oracle_health line 3973 > > Perl and DBI are compiled. It says you don't have the required perl module DBD::Oracle installed. Do you? If you believe you do, it's appears that it is not installed correctly. -- Marc -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Check_oracle_health plugin error
Hi Gerhard, Thanks for the suggestion... After compiling the plugin when I try to run on the command line I am getting the error. ./check_oracle_health -connect=nagios/nag...@sisdev <mailto:-connect=nagios/nag...@sisdev> -mode=tnsping CRITICAL - cannot connect to nagios/nag...@sisdev <mailto:nagios/nag...@sisdev> . install_driver(Oracle) failed: Can't locate DBD/Oracle.pm in @INC (@INC contains: . /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-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/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-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/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8) at (eval 13) line 3. Perhaps the DBD::Oracle perl module hasn't been fully installed, or perhaps the capitalisation of 'Oracle' isn't right. Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge. at ./check_oracle_health line 3973 Perl and DBI are compiled. Regards, Chethan M N From: Gerhard Lausser [mailto:gerhard.laus...@consol.de] Sent: Thursday, September 10, 2009 1:41 AM To: Chethan M N (WI01 - Manage IT); Nagios-users@lists.sourceforge.net Subject: AW: [Nagios-users] Check_oracle_health plugin error Hi Chetan, looks like your tar command isn't able to handle filenames longer than 100 characters. (I think SuSE has this problem) So when you unpacked the tar archive, not all of the files inside were extracted. Please download the .shar.gz file and extract it with sh check_oracle_health-1.6.2.shar.gz Gerhard Von: chethan@wipro.com [mailto:chethan@wipro.com] Gesendet: Montag, 7. September 2009 12:38 An: Nagios-users@lists.sourceforge.net Betreff: [Nagios-users] Check_oracle_health plugin error Dear All, I m trying to monitor oracle database hosted on solaris machine. when i try to configure/compile check_oracle_health plugin I m getting an error as below... Please let me know any work around for this error. Regards, Chethan M N bash-3.00# ./configure checking for a BSD-compatible install... ./install-sh -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether make sets $(MAKE)... yes checking how to create a pax tar archive... pax checking build system type... sparc-sun-solaris2.10 checking host system type... sparc-sun-solaris2.10 checking for a BSD-compatible install... ./install-sh -c checking whether make sets $(MAKE)... (cached) yes variable with_statefiles_dir is /var/tmp/check_oracle_health checking for sh... /usr/bin/sh checking for perl... /usr/bin/perl checking for gzip... /usr/bin/gzip checking for gawk... no checking for nawk... /usr/bin/nawk checking for grep... /usr/bin/grep checking for echo... /usr/bin/echo checking for sed... /usr/bin/sed checking for cat... /usr/bin/cat configure: creating ./config.status config.status: creating Makefile config.status: creating plugins-scripts/Makefile config.status: creating plugins-scripts/subst config.status: creating t/Makefile --with-perl: /usr/bin/perl --with-statefiles-dir: /var/tmp/check_oracle_health --with-nagios-user: nagios --with-nagios-group: nagios bash-3.00# make Making all in plugins-scripts make: Fatal error: Don't know how to make target `Nagios/DBD/Oracle/Server/Instance/SGA/SharedPool/DictionaryCache.pm' Current working directory /tmp/test/check_oracle_health-1.4.0.1/plugins-scripts *** Error code 1 The following command caused the error: failcom='exit 1'; \ for f in x $MAKEFLAGS; do \ case $f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \
Re: [Nagios-users] Check_oracle_health plugin error
Hi Chetan, looks like your tar command isn't able to handle filenames longer than 100 characters. (I think SuSE has this problem) So when you unpacked the tar archive, not all of the files inside were extracted. Please download the .shar.gz file and extract it with sh check_oracle_health-1.6.2.shar.gz Gerhard _ Von: chethan@wipro.com [mailto:chethan@wipro.com] Gesendet: Montag, 7. September 2009 12:38 An: Nagios-users@lists.sourceforge.net Betreff: [Nagios-users] Check_oracle_health plugin error Dear All, I m trying to monitor oracle database hosted on solaris machine. when i try to configure/compile check_oracle_health plugin I m getting an error as below... Please let me know any work around for this error. Regards, Chethan M N bash-3.00# ./configure checking for a BSD-compatible install... ./install-sh -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether make sets $(MAKE)... yes checking how to create a pax tar archive... pax checking build system type... sparc-sun-solaris2.10 checking host system type... sparc-sun-solaris2.10 checking for a BSD-compatible install... ./install-sh -c checking whether make sets $(MAKE)... (cached) yes variable with_statefiles_dir is /var/tmp/check_oracle_health checking for sh... /usr/bin/sh checking for perl... /usr/bin/perl checking for gzip... /usr/bin/gzip checking for gawk... no checking for nawk... /usr/bin/nawk checking for grep... /usr/bin/grep checking for echo... /usr/bin/echo checking for sed... /usr/bin/sed checking for cat... /usr/bin/cat configure: creating ./config.status config.status: creating Makefile config.status: creating plugins-scripts/Makefile config.status: creating plugins-scripts/subst config.status: creating t/Makefile --with-perl: /usr/bin/perl --with-statefiles-dir: /var/tmp/check_oracle_health --with-nagios-user: nagios --with-nagios-group: nagios bash-3.00# make Making all in plugins-scripts make: Fatal error: Don't know how to make target `Nagios/DBD/Oracle/Server/Instance/SGA/SharedPool/DictionaryCache.pm' Current working directory /tmp/test/check_oracle_health-1.4.0.1/plugins-scripts *** Error code 1 The following command caused the error: failcom='exit 1'; \ for f in x $MAKEFLAGS; do \ case $f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ list='plugins-scripts t'; for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" = "."; then \ dot_seen=yes; \ local_target="$target-am"; \ else \ local_target="$target"; \ fi; \ (cd $subdir && make $local_target) \ || eval $failcom; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Fatal error: Command failed for target `all-recursive' = -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Check_oracle_health plugin error
Dear All, I m trying to monitor oracle database hosted on solaris machine. when i try to configure/compile check_oracle_health plugin I m getting an error as below... Please let me know any work around for this error. Regards, Chethan M N bash-3.00# ./configure checking for a BSD-compatible install... ./install-sh -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether make sets $(MAKE)... yes checking how to create a pax tar archive... pax checking build system type... sparc-sun-solaris2.10 checking host system type... sparc-sun-solaris2.10 checking for a BSD-compatible install... ./install-sh -c checking whether make sets $(MAKE)... (cached) yes variable with_statefiles_dir is /var/tmp/check_oracle_health checking for sh... /usr/bin/sh checking for perl... /usr/bin/perl checking for gzip... /usr/bin/gzip checking for gawk... no checking for nawk... /usr/bin/nawk checking for grep... /usr/bin/grep checking for echo... /usr/bin/echo checking for sed... /usr/bin/sed checking for cat... /usr/bin/cat configure: creating ./config.status config.status: creating Makefile config.status: creating plugins-scripts/Makefile config.status: creating plugins-scripts/subst config.status: creating t/Makefile --with-perl: /usr/bin/perl --with-statefiles-dir: /var/tmp/check_oracle_health --with-nagios-user: nagios --with-nagios-group: nagios bash-3.00# make Making all in plugins-scripts make: Fatal error: Don't know how to make target `Nagios/DBD/Oracle/Server/Instance/SGA/SharedPool/DictionaryCache.pm' Current working directory /tmp/test/check_oracle_health-1.4.0.1/plugins-scripts *** Error code 1 The following command caused the error: failcom='exit 1'; \ for f in x $MAKEFLAGS; do \ case $f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ list='plugins-scripts t'; for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" = "."; then \ dot_seen=yes; \ local_target="$target-am"; \ else \ local_target="$target"; \ fi; \ (cd $subdir && make $local_target) \ || eval $failcom; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Fatal error: Command failed for target `all-recursive' = -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null