Page 1 of 1

OL7: oracle client and plugins

Posted: Fri Apr 30, 2021 10:02 am
by nfla
Hello.

I am running Oracle Linux 7.9 x86_64 and Nagios XI 5.7.3.

I am attempting to install the Oracle client and plugins (specifically: check_oracle_health) following these directions:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

I have found that the script mentioned in the directions "https://assets.nagios.com/downloads/gen ... install.sh" has an error for Oracle Linux.

Line 52 of the script...

Code: Select all

if [ "$distro" = "CentOS" ] || [ "$distro" = "CentOSStream" ] || [ "$distro" = "Scientific" ] || [ "$distro" = "Fedora" ] || [ "$distro" = "RedHatEnterpriseServer" ] || [ "$distro" = "RedHatEnterprise" ]; then
... should include an entry for "OracleServer". Like this:

Code: Select all

if [ "$distro" = "CentOS" ] || [ "$distro" = "CentOSStream" ] || [ "$distro" = "Scientific" ] || [ "$distro" = "Fedora" ] || [ "$distro" = "RedHatEnterpriseServer" ] || [ "$distro" = "RedHatEnterprise" ] || [ "$distro" = "OracleServer" ]; then
Otherwise the script attempts to use 'apt-get', which of course fails on a RHEL derivative.

After making this change to the script, and following all directions in the pdf (I can provide a terminal log), the script appears to fully complete.

HOWEVER, my "check_oracle_health" service checks report (I've x'ed out private info):
CRITICAL - cannot connect to x.x.x.x:2021/xxxx. DBI object version 1.627 does not match bootstrap parameter 1.643 at /usr/lib64/perl5/DynaLoader.pm line 213.
BEGIN failed--compilation aborted at /usr/local/lib64/perl5/DBI.pm line 284.
Compilation failed in require at /usr/local/nagios/libexec/check_oracle_health line 6101.
Any thoughts?

Thank you!!

Re: OL7: oracle client and plugins

Posted: Mon May 03, 2021 10:07 am
by ssax
Locking thread, ticket received, we will continue support through the ticket.

Thank you!