Problem with Check_Oracle_Health plugin
Posted: Mon Jun 09, 2014 9:21 am
I was wondering if some would be kind enough to give me some assistance and guidance with a plugin that is causing me some grief. I'm new to Nagios and have searched extensively online trying to solve my issue to no avail.
The web interface gives this error:
CRITICAL - cannot connect to TESTDB. install_driver(Oracle) failed: Can't load '/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libclntsh.so.10.1: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230.
But when I run the command like this from the command line it comes back as OK.
[root@tle-ora objects]# /usr/local/nagios/libexec/check_oracle_health --connect TESTDB --user system --password oracle11 --mode tnsping
OK - connection established to TESTDB.
Here is my command.cfg entry.
# 'check_oracle_health tnsping' command definition
define command{
command_name check_oracle_health
command_line $USER1$/check_oracle_health -connect TESTDB -user system -password oracle11 -mode tnsping
}
Here is my local_host.cfg entry.
# Define a service to check oracle_health on the local machine.
define service{
use local-service ; Name of service template to use
host_name localhost
service_description TNSPING
check_command check_oracle_health
notifications_enabled 0
}
I'm not sure what I'm doing incorrectly. I tried everything I could think of in getting this to work.
Any help or guidance is greatly appreciated.
Thanks,
Allan
The web interface gives this error:
CRITICAL - cannot connect to TESTDB. install_driver(Oracle) failed: Can't load '/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: libclntsh.so.10.1: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230.
But when I run the command like this from the command line it comes back as OK.
[root@tle-ora objects]# /usr/local/nagios/libexec/check_oracle_health --connect TESTDB --user system --password oracle11 --mode tnsping
OK - connection established to TESTDB.
Here is my command.cfg entry.
# 'check_oracle_health tnsping' command definition
define command{
command_name check_oracle_health
command_line $USER1$/check_oracle_health -connect TESTDB -user system -password oracle11 -mode tnsping
}
Here is my local_host.cfg entry.
# Define a service to check oracle_health on the local machine.
define service{
use local-service ; Name of service template to use
host_name localhost
service_description TNSPING
check_command check_oracle_health
notifications_enabled 0
}
I'm not sure what I'm doing incorrectly. I tried everything I could think of in getting this to work.
Any help or guidance is greatly appreciated.
Thanks,
Allan