Monitoring Oracle Database-facing problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nagiostool
Posts: 72
Joined: Wed Jul 20, 2011 2:17 am

Monitoring Oracle Database-facing problem

Post by nagiostool »

Hi,

I have tried to configured Oracle database using Oracle Serverspace wizard. I'm getting the following error when configured.

CRITICAL - cannot connect to 172.17.43.94:1521/contorl1. ORA-12514: TNS:listener does not currently know of service requested in connect descriptor (DBD ERROR: OCIServerAttach)

Any help regarding this ?
nagiostool
Posts: 72
Joined: Wed Jul 20, 2011 2:17 am

Re: Monitoring Oracle Database-facing problem

Post by nagiostool »

i have tried to execute the below command from Nagios XI server command line but got as Cannot determine ORACLE_HOME for sid <sid>

/usr/local/nagios/libexec/check_oracle --tns <sid>
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitoring Oracle Database-facing problem

Post by scottwilkerson »

Please see this guide

Code: Select all

http://assets.nagios.com/downloads/nagiosxi/docs/Oracle_Plugin_Installation.pdf
You will see you need to add the variables to the path such as

Code: Select all

/usr/bin/env ORACLE_HOME=/usr/lib/oracle/11.2/client LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client/lib /usr/local/nagios/libexec/check_oracle --tns <sid>
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nagiostool
Posts: 72
Joined: Wed Jul 20, 2011 2:17 am

Re: Monitoring Oracle Database-facing problem

Post by nagiostool »

I'm getting the same error.

I have a doubt, should we install the Oracle Version which we need to monitor or the latest Oracle Version ?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Monitoring Oracle Database-facing problem

Post by abrist »

What is the full command you are attempting to use for the check?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked