-
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
plugin=database::oracle::plugin work on shell as centreon-engine but not on web #1787
Comments
Could you provide the shell environment of centreon-engine user ? |
[centreon-engine@------- root]$ printenv |
I think you have installed perl DBD oracle dependency in 'PERL5LIB=/lib/perl5/lib/perl5:/root/perl5/lib/perl5'. |
I eddit /var/lib/centreon-engine/.bashrc and now I have
I reboot the server Now I have [centreon-engine@evx-sup1 root]$ printenv and when I test in shell with centreon-engine, now I have UNKNOWN: Cannot connect: (no error string) Same in centreon web |
Yes. Please compile perl DBD Oracle module without PERL environment variable. |
Must I do in /root/.cpan/build/DBD-Oracle-1.80-2PpnBn (in root) perl Makefile-instantclient.PL ? |
Please don't use CPAN command. Use command manually. |
[root@-- DBD-Oracle-1.80-2PpnBn]# make ? |
Thanks I did the manual installation [root@--- tmp]# tar xvf DBD-Oracle-1.80.tar.gz [root@--- DBD-Oracle-1.80]# pwd [root@---DBD-Oracle-1.80]# perl Makefile.PL .............. All tests successful. [root@--- DBD-Oracle-1.80]# make install "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- Oracle.bs blib/arch/auto/DBD/Oracle/Oracle.bs 644 After I tried my command in centreon-engine but still UNKNOWN: Cannot connect: (no error string) |
Here the issue: Please unset your environment variable related to Perl (and redo the install) |
[root@--- ~]# printenv XDG_SESSION_ID=7 [root@--- DBD-Oracle-1.80]# perl Makefile.PL
[root@--- DBD-Oracle-1.80]# make && make test Skip blib/lib/DBD/Oracle/Troubleshooting/Cygwin.pod (unchanged) chmod 755 blib/arch/auto/DBD/Oracle/Oracle.so Versions for all modules listed in MYMETA.json (including optional ones):=== Configure Requires ===Module Want Have------------------- ----- -------Config any undefDBI 1.623 1.627Data::Dumper any 2.145Devel::Peek any 1.08Encode any 2.51ExtUtils::MakeMaker any 6.68Math::BigInt any 1.998Test::More any 0.98Test::NoWarnings any missing=== Build Requires ===Module Want Have------------------- ---- ----ExtUtils::MakeMaker any 6.68=== Test Requires ===Module Want Have------------------- ---- -------B any 1.35Carp any 1.26Data::Dumper any 2.145Devel::Peek any 1.08Encode any 2.51ExtUtils::MakeMaker any 6.68File::Spec any 3.40IO::Handle any 1.33IPC::Open3 any 1.12Math::BigInt any 1.998Symbol any 1.07Test::More any 0.98Test::NoWarnings any missingThread::Semaphore any 2.12lib any 0.63utf8 any 1.09vars any 1.02=== Test Recommends ===Module Want Have---------- -------- --------CPAN::Meta 2.120900 2.150010=== Runtime Requires ===Module Want Have---------- ----- -----DBI 1.623 1.627DynaLoader any 1.14Exporter any 5.68strict any 1.07warnings any 1.13*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***The following REQUIRED prerequisites were not satisfied:Test::NoWarnings is not installed (any version required)Test::NoWarnings is not installed (any version required)t/00-report-prereqs.t ..... ok Test Summary Reportt/26exe_array.t (Wstat: 512 Tests: 0 Failed: 0) |
Have you tried the command centreon_plugins after ? |
yes and still UNKNOWN: Cannot connect: (no error string) I didn't do "make install" because the last error in " make && make test" Now I do make install Files found in blib/arch: installing files in blib/lib into architecture dependent library tree And now, the command in shell in centreon-engine work And in centreon web, that's work Thank you very much 👍 |
Hi
When I try
/usr/lib64/nagios/plugins/centreon_plugins.pl --plugin=database::oracle::plugin --hostname='' --port='1521' --sid='' --username='' --password='**' --mode='connected-users' --warning='120' --critical='130'
In shell, with centreon-engine, it's work, I have :
WARNING: 124 Connected user(s). | 'connected_users'=124;0:120;0:130;0;
In root, it's work too.
My problem is in centreon web, I have :
Can you help me ?
Thank's
The text was updated successfully, but these errors were encountered: