Oracle check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
healthfusion
Posts: 12
Joined: Thu Nov 15, 2012 3:04 pm

Oracle check

Post by healthfusion »

Hello,

Trying to configure monitoring for Oracle box. Was able successively install all RPM according to this doc: http://assets.nagios.com/downloads/nagi ... lation.pdf
Initial error was: CRITICAL - cannot connect to x.x.x.x:1521. ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA (DBD ERROR: OCIServerAttach)
After I modified line to: x.x.x.x:1521/Service_name
Getting new error:

COMMAND: /usr/bin/env LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client/lib ORACLE_HOME=/usr/lib/oracle/11.2/client /usr/local/nagios/libexec/check_oracle_health --connect "x.x.x.x:1521/name" --username user --password "pass" --mode sga-data-buffer-hit-ratio --warning 98: --critical 95:
OUTPUT: CRITICAL - cannot connect to x.x.x.x:1521/name. ORA-21561: OID generation failed (DBD ERROR: OCISessionBegin)

Some people had same issue because of wrong client version 64/32 bit. In my case it's CentOS i386 and client i386 as well.

Please help.

Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Oracle check

Post by scottwilkerson »

Did your DBA setup the tnsnames.ora and listener.ora on the Oracle server?

Here is some basic information, but your Oracle Administrator will have to set this up.

http://www.oracle-base.com/articles/mis ... ration.php

http://www.orafaq.com/wiki/Tnsnames.ora

http://www.orafaq.com/wiki/Listener.ora
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
healthfusion
Posts: 12
Joined: Thu Nov 15, 2012 3:04 pm

Re: Oracle check

Post by healthfusion »

Oracle has listener and tnsnames
After I configured tnsname.ora file on Nagios Server I am getting now: TNS:could not resolve the connect identifier specified (DBD ERROR: OCIServerAttach)

Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Oracle check

Post by scottwilkerson »

did you configure the listener as well?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
healthfusion
Posts: 12
Joined: Thu Nov 15, 2012 3:04 pm

Re: Oracle check

Post by healthfusion »

Yes it's configured on the Oracle server itself. I dont it on Nagios right?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Oracle check

Post by lmiltchev »

After you configured the listener, did you try running the same command?

Code: Select all

/usr/bin/env LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client/lib ORACLE_HOME=/usr/lib/oracle/11.2/client /usr/local/nagios/libexec/check_oracle_health --connect "x.x.x.x:1521/name" --username user --password "pass" --mode sga-data-buffer-hit-ratio --warning 98: --critical 95:
Are you still getting the same output?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked