Hi
I just met a problem when try the a nagios plugin for oracle
Install and config all done well
You see such :
[root@rh libexec]# ./check_oracle_health --connect=tb --username=nagios --password=aaaaaa --mode=connection-time
OK - 0.69 seconds to connect as NAGIOS | connection_time=0.6852;1;5
So ,you can see check_oracle_health cmd work vary well under root user
But
In nagios browser ,but met a problem :
CRITICAL - cannot connect to tb. install_driver(Oracle) failed: Can't load '/usr/lib/perl5/site_perl/5.8.5/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.5/i386-linux-thread-multi/DynaLoader.pm line 230.
And here is the service definition in localhost.cfg:
define service{
use local-service ; Name of service template to use
host_name localhost
service_description oracle
check_command check_oracle_health!tb!nagios!aaaaaa!connection-time
notifications_enabled 0
}
So can anyone tell me what is the reason?
Thanks a lot