Re: Unable to get output on custom check
Posted: Wed Oct 25, 2017 5:17 am
Thank you dwasswa,dwasswa wrote:Hi @lrnnetops,
This file logs the process of any commands passed to the Nagios XI backend/subsystem through the cmdsubsys cron. ThisCode: Select all
/usr/local/nagiosxi/var/cmdsubsys.log
includes “Apply Configuration” or other Nagios XI specific commands.
By checking the logs from "/usr/local/nagiosxi/var/cmdsubsys.log" we able to find the issue. variable "LD_LIBRARY_PATH" path was set. we fixed it by adding below lines in our custom script.
===================
BEGIN {
my $ORACLE_HOME = "/usr/lib/oracle/11.2/client64";
my $LD_LIBRARY_PATH = "$ORACLE_HOME/lib";
if ($ENV{ORACLE_HOME} ne $ORACLE_HOME
|| $ENV{LD_LIBRARY_PATH} ne $LD_LIBRARY_PATH
) {
$ENV{ORACLE_HOME} = "/usr/lib/oracle/11.2/client64";
$ENV{LD_LIBRARY_PATH} = "$ORACLE_HOME/lib";
exec { $^X } $^X, $0, @ARGV;
}
}
===================
Thank you all for you inputs...
Please close this tread.
Regards,
Rohan