Hello to All,

i have a little Problem with check_oracle_health …

When I call the check: check_oracle_health on the command line with the following parameters:

/ usr / lib64 / nagios / plugins / check_oracle_health --connect --mode connected-users --password test - username test

does it work. As soon as I set it up over the Direcotor and unroll it terminates with exit code 128, but still displays a result.

On the web interface the correct result is displayed and additionally
<Terminated by signal 11 (Segmentation fault).>

and the check stays purple and unknown.

Maybe someone has a tip here.

Software used:

Icinga 2.10.4
Director latest version
DBD Oracle 1.76.tar.gz
perl DBI and perl-devel
System Software RedHat 7.6

Did you set the environment variables correctly? The ones that are defined in the command may not be correct for you.

        env = {
                "ORACLE_HOME" = "$oracle_home$"
                "LD_LIBRARY_PATH" = "$oracle_ld_library_path$"
                "TNS_ADMIN" = "$oracle_tns_admin$"

        vars.oracle_health_regexp = false
        vars.oracle_health_ident = false
        vars.oracle_health_commit = false
        vars.oracle_health_noperfdata = false
        vars.oracle_health_report = "long"

        vars.oracle_home = "/usr/lib/oracle/11.2/client64/lib"
        vars.oracle_ld_library_path = "/usr/lib/oracle/11.2/client64/lib"
        vars.oracle_tns_admin = ConfigDir + "/plugin-configs"

Change them in your service

Or better in /etc/sysconfig/icinga2 or /etc/default/icinga2

1 Like