Page 1 of 1

Check Oracle don't work in Nagios, but it works in command

Posted: Wed Jan 12, 2011 3:46 am
by maniattico
Hello,

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
} 
And this service check:

Code: Select all

define service{
	use			generic-service
	host_name		svroracle.domain.es
	service_description	Check ORACLE
	check_command		check_oracle_DBDES
	}
If I launch the command direcly in a prompt:

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
However, in Nagios I get

Code: Select all

Unable to connect to DBCDZ10 ORACLE !!!
This work fine since 2 years, but 5 days ago, when I restart all the servers, I have this issue.

Thanks in advanced.

Regards.