Check Oracle don't work in Nagios, but it works in command
Posted: Wed Jan 12, 2011 3:46 am
Hello,
In Nagios 3, I have this command:
And this service check:
If I launch the command direcly in a prompt:
However, in Nagios I get
This work fine since 2 years, but 5 days ago, when I restart all the servers, I have this issue.
Thanks in advanced.
Regards.
In Nagios 3, I have this command:
Code: Select all
# ### CHECK ORACLE ###
define command{
command_name check_oracle_DBDES
command_line /usr/bin/perl /usr/local/nagios/libexec/check_oracle_instant 192.168.1.22 1521 DBDES system MYp@SSW0RD
} Code: Select all
define service{
use generic-service
host_name svroracle.domain.es
service_description Check ORACLE
check_command check_oracle_DBDES
}Code: Select all
root@svrnagios:/usr/local/nagios/libexec# /usr/bin/perl /usr/local/nagios/libexec/check_oracle_instant 192.168.1.22 1521 DBDES system MYp@SSW0RD
Latch Hit Ratio DBDES KO
Code: Select all
Unable to connect to DBCDZ10 ORACLE !!!Thanks in advanced.
Regards.