[Nagiosplug-help] {Disarmed} RE: {Disarmed} check_oracle plug in help

Duncan Berriman duncan at dcl.co.uk
Wed May 14 10:28:06 CEST 2008


You appear to be running different commands....
 
command[check_tns]=/usr/local/nagios/libexec/check_oracle --tns oradb-lnx
command[check_login]=/usr/local/nagios/libexec/check_oracle --login playdb1

but all commands works if I execute following from 239 machine (oradb-lnx)

[nagios at oradb-lnx libexec]$ ./check_oracle --tns playdb1
OK - reply time 10 msec from playdb1
[nagios at oradb-lnx libexec]$ ./check_oracle --login playdb1
OK - dummy login connected
 
Surely it should be....
 
command[check_tns]=/usr/local/nagios/libexec/check_oracle --tns playdb1

 
not
 
command[check_tns]=/usr/local/nagios/libexec/check_oracle --tns oradb-lnx
 
Duncan
 

-----Original Message-----
From: nagiosplug-help-bounces at lists.sourceforge.net
[mailto:nagiosplug-help-bounces at lists.sourceforge.net] On Behalf Of
asam30 at gmail.com
Sent: 14 May 2008 08:39
To: nagiosplug-help at lists.sourceforge.net
Subject: {Disarmed} [Nagiosplug-help] check_oracle plug in help


Hi,

I am using check_oracle plug in to monitor some of the oracle database
parameters. But this is reporting the following error.

[nagios at lnxtestsrv1 libexec]$ ./check_nrpe -H  <http://10.192.2.239>
MailScanner warning: numerical links are often malicious: 10.192.2.239 -p
5666 -c check_tns
No TNS Listener on playdb1

Let me explain,

lnxtestsrv1 is a box where nagios server is running and this is monitoring
checks(check_http, check_ftp, check_disk, check_swap etc) of other machines
just fine. I now need to monitor oracle db on  <http://10.192.2.239>
MailScanner warning: numerical links are often malicious: 10.192.2.239
machine where oracle server is running and sid is playdb1. i installed
oracle client on this lnxtestsrv1 machine and user nagios has access to
sqlplus and tnsping commands I also add nagios to the oracle group (dba,
oinstall). tnsping from nagios user works fine. telnet to 239 on port 1521
works ok

when I execute this command on the machine where nagios server is running,

[nagios at lnxtestsrv1 libexec]$ ./check_nrpe -H  <http://10.192.2.239>
MailScanner warning: numerical links are often malicious: 10.192.2.239 -p
5666 -c check_tns
No TNS Listener on playdb1


and

[nagios at lnxtestsrv1 libexec]$ ./check_nrpe -H  <http://10.192.2.239>
MailScanner warning: numerical links are often malicious: 10.192.2.239 -p
5666 -c check_login
CRITICAL -

in my 239 machine nrpe.cfg has following,

command[check_tns]=/usr/local/nagios/libexec/check_oracle --tns oradb-lnx
command[check_login]=/usr/local/nagios/libexec/check_oracle --login playdb1

but all commands works if I execute following from 239 machine (oradb-lnx)

[nagios at oradb-lnx libexec]$ ./check_oracle --tns playdb1
OK - reply time 10 msec from playdb1
[nagios at oradb-lnx libexec]$ ./check_oracle --login playdb1
OK - dummy login connected


I did set the ORACLE_HOME path to where oracle client installed on
lnxtestsrv1 machine. Please help me how to fix this.

Thanks
-Shankar




-- 
Shankar Asam 
-- 
This message has been scanned for viruses and 
dangerous content by  <http://www.mailscanner.info/> MailScanner, and is 
believed to be clean. 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20080514/f270f44f/attachment.html>


More information about the Help mailing list