Unable to get output on custom check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
lrnnetops
Posts: 102
Joined: Thu May 18, 2017 5:31 am

Re: Unable to get output on custom check

Post by lrnnetops »

dwasswa wrote:Hi @lrnnetops,

Code: Select all

/usr/local/nagiosxi/var/cmdsubsys.log
This file logs the process of any commands passed to the Nagios XI backend/subsystem through the cmdsubsys cron. This
includes “Apply Configuration” or other Nagios XI specific commands.
Thank you dwasswa,

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
kyang

Re: Unable to get output on custom check

Post by kyang »

Sounds great! I'll be closing this topic as resolved!

If you have any more questions, feel free to create another thread!

Thank you for using the Nagios Support Forum!
Locked