check_oracle_health error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bgee
Posts: 8
Joined: Thu Aug 29, 2013 5:23 pm

check_oracle_health error

Post by bgee »

We are doing a trial with the Centros VM. Set up oracle checks yesterday, and got them to work fine. Had to restart the server this afternoon to test some other issues and now are getting this error on each oracle check:

CRITICAL - cannot connect to xxx.xxx.xxx:1521/SID. install_driver(Oracle) failed: Can't load '/usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libocci.so.11.1: cannot open shared object file: No such file

at (eval 18) line 3
Compilation failed in require at (eval 18) line 3.
Perhaps a required shared library or dll isn't installed where expected
at /usr/local/nagios/libexec/check_oracle_health line 4755

Since we didn't change anything, not sure what happened. Help please :).
Last edited by bgee on Fri Aug 30, 2013 10:48 am, edited 1 time in total.
bgee
Posts: 8
Joined: Thu Aug 29, 2013 5:23 pm

Re: check_oracle_health error

Post by bgee »

More info; here's the full info from one of the notifications (servername/sid changed):

CRITICAL - cannot connect to xxx.xxx.xxx:1521/SID. install_driver(Oracle) failed: Cant load /usr/local/lib64/perl5/auto/DBD/Oracle/Oracle.so for module DBD::Oracle: libocci.so.11.1: cannot open shared object file: No such file or directory at /usr/lib64/perl5/DynaLoader.pm line 200.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: check_oracle_health error

Post by sreinhardt »

Have you installed the required oracle packages? Unfortunately this is not something we can redistribute with our vm as their licensing does not permit it.
http://assets.nagios.com/downloads/nagi ... lation.pdf
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
bgee
Posts: 8
Joined: Thu Aug 29, 2013 5:23 pm

Re: check_oracle_health error

Post by bgee »

Yes, I have installed the packages as detailed. I was able to have them work on Wednesday, but yesterday afternoon after a server restart, I began having this problem.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_oracle_health error

Post by abrist »

Walk back through the oracle plugin/wizard documentation. Post any errors in the install process here.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
bgee
Posts: 8
Joined: Thu Aug 29, 2013 5:23 pm

Re: check_oracle_health error

Post by bgee »

After removing a directory that was causing an installer script error, and reviewing each of the wizards, I found that the LD_LIBRARY_PATH and ORACLE_HOME locations had been reset to default. Upon further thinking about this, I may have downloaded a newer version of the wizards yesterday and installed.

I think this is now resolved: all Oracle services I'm checking are being monitored properly.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: check_oracle_health error

Post by abrist »

great. Good sleuthing. Closing topic, enjoy the weekend :)
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked