-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
oracle::plugin - Cannot connect: (no error string) - Work on shell with centreon-engine #2483
Comments
I think perl DBD Oracle is installed in root directory i think. |
Thanks. I already followed your advices in the 1787 issue and it allowed me to use the plugin in shell with centreon-engine but still not working in centreon web interface. I've commented PERL variables in .bashrc, checked in
Should I uncomment and modify the PERL variables next to this installation? I had those:
I can't find /perl5/lib anywhere else than in /root... I think I missed something. Thanks again. |
That's the issue. I think there is a problem with your oracle db install. |
Maybe yes. I installed Oracle Client 19 with the package I download directly on oracle website, I left the default path which is /home/oracle/... My variables about oracle home, ld library are well defines. Can you tell me if "oracle instantclient" we can found in .rpm is enough to use centreon oracle plugin? I've downloaded and installed the oracle client manually because it was mentionned in the documentation I used for my installation. |
you can use rpm instantclient. But you need to compile DBD::Oracle Perl |
I was a bit lost yesterday with all my tries, so let's make a summary of my current situation and what i'm doing, it's quite short:
I hope someone can help with those informations! |
Where is installed DBD/Oracle ? (use locate command) |
Thanks Quentin. I used find command on Oracle.pm and i got this: My env on centreon-engine user:
|
It comes from the LD_LIBRARY_PATH. You need to create file
And execute |
Perfect! It works! Thanks a lot for your support! | OK | 6m 12s ago | 6m 12s ago | 2m 12s ago | 1/5 (H) | OK: All tablespaces are OK Tablespace 'sysaux' Tot |
Thanks for the feedback. You're welcome! |
Hello everyone,
I'm looking for a solution to my problem since several days. I thought i found the solution ine the issue #1787 but it didn't solve my problem.
When I'm checking an oracle DB in centreon web I still have this error:
UNKNOWN: Cannot connect: (no error string)
When i'm trying in shell, directly in the /usr/lib/centreon/plugins directory with the command:
./centreon_plugins.pl --plugin=database::oracle::plugin --mode=tnsping --hostname=xxx.xx.x.x --sid=XX
It works with root user and centreon-engine too (it didn't before i applied the solution about DBD::Oracle in the 1787 issue.
The configuration in centreon web is:
$CENTREONPLUGINS$/centreon_plugins.pl --plugin=database::oracle::plugin --mode=tnsping --hostname=%HOSTADDRESS% --sid=$_SERVICESID$
I moved the content of centreon-plugins directly in /centreon/plugins that's why i'm using$CENTREONPLUGINS$ in path.
I don't have any idea now... I've read a lot a documentation and threads without sucess.
Thanks for your help!
The text was updated successfully, but these errors were encountered: