Oracle plugin
Posted: Thu Feb 03, 2022 12:18 pm
Hi team ,
We are trying to monitor Oracle database on our test Nagios core box . I have followed this document https://assets.nagios.com/downloads/nag ... ios-XI.pdf and installed the plugin . But im getting below error , im not sure what dependency needs to be installed .
[nagios@abc~]$ /usr/bin/env LD_LIBRARY_PATH=/usr/lib/oracle/21/client64/lib ORACLE_HOME=/usr/lib/oracle/21/client64 /usr/local/nagios/libexec/check_oracle_health --connect 'xyz:1521/XOEMQA' --username 'name' --password 'pwd' --mode tablespace-usage --name DBATOOLS --warning 85 --critical 90
CRITICAL - cannot connect to xyz:1521/XOEMQA. install_driver(Oracle) failed: Can't locate loadable object for module DBD::Oracle in @INC (@INC contains: /usr/local/nagios/libexec /home/nagios/perl5/lib/perl5/5.26.3/x86_64-linux-thread-multi /home/nagios/perl5/lib/perl5/5.26.3 /home/nagios/perl5/lib/perl5/x86_64-linux-thread-multi /home/nagios/perl5/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at (eval 14) line 3.
Compilation failed in require at (eval 14) line 3.
Perhaps a module that DBD::Oracle requires hasn't been fully installed
at /usr/local/nagios/libexec/check_oracle_health line 6151.
I have tried executing below commands as well but still getting an error . Could you please guide us .
cd /tmp
wget http://www.cpan.org/modules/by-module/D ... .83.tar.gz
tar zxvf DBD-Oracle-1.83.tar.gz cd DBD-Oracle-1.74
perl Makefile.PL -l
make && make test
make install
We are trying to monitor Oracle database on our test Nagios core box . I have followed this document https://assets.nagios.com/downloads/nag ... ios-XI.pdf and installed the plugin . But im getting below error , im not sure what dependency needs to be installed .
[nagios@abc~]$ /usr/bin/env LD_LIBRARY_PATH=/usr/lib/oracle/21/client64/lib ORACLE_HOME=/usr/lib/oracle/21/client64 /usr/local/nagios/libexec/check_oracle_health --connect 'xyz:1521/XOEMQA' --username 'name' --password 'pwd' --mode tablespace-usage --name DBATOOLS --warning 85 --critical 90
CRITICAL - cannot connect to xyz:1521/XOEMQA. install_driver(Oracle) failed: Can't locate loadable object for module DBD::Oracle in @INC (@INC contains: /usr/local/nagios/libexec /home/nagios/perl5/lib/perl5/5.26.3/x86_64-linux-thread-multi /home/nagios/perl5/lib/perl5/5.26.3 /home/nagios/perl5/lib/perl5/x86_64-linux-thread-multi /home/nagios/perl5/lib/perl5 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at (eval 14) line 3.
Compilation failed in require at (eval 14) line 3.
Perhaps a module that DBD::Oracle requires hasn't been fully installed
at /usr/local/nagios/libexec/check_oracle_health line 6151.
I have tried executing below commands as well but still getting an error . Could you please guide us .
cd /tmp
wget http://www.cpan.org/modules/by-module/D ... .83.tar.gz
tar zxvf DBD-Oracle-1.83.tar.gz cd DBD-Oracle-1.74
perl Makefile.PL -l
make && make test
make install