Oracle Plugin Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
vendor-support
Posts: 9
Joined: Thu Feb 13, 2014 6:00 pm
Location: Los Angeles
Contact:

Oracle Plugin Issue

Post by vendor-support »

I just setup the latest Nagios XI version for evaluation on a newly install CentOS 6.5 (minimal) and an having issues trying to get the Oracle monitoring working. I have followed the instructions at:
http://assets.nagios.com/downloads/nagi ... lation.pdf

At first it wasn't working, but I found on this forum that I had to change the ORACLE_HOME and LD_CONFIG_PATH for the check commands (Configure -> CCM -> commands -> check_xi_oraclequery / check_xi_oracleserverspace / check_xi_oracletablespace) to:

/usr/bin/env LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib ORACLE_HOME=/usr/lib/oracle/12.1/client64

I now get the following error:
CRITICAL - cannot connect to xxx.xxx.xxx.xxx:1521/sid. ORA-12514: TNS:listener does not currently know of service requested in connect descriptor (DBD ERROR: OCIServerAttach)

the only thing I found was a possbile issue with tnsnames.ora which didn't exist on the Nagios server so I had to create the network/admin directories in the oracle home and made a tnsnames.ora file but still getting the same error.

I do not know where to go from here, is there a config issue on the Nagios server still or the Oracle server? Any help would be greatly appreciated.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Oracle Plugin Issue

Post by abrist »

vendor-support wrote:he only thing I found was a possbile issue with tnsnames.ora which didn't exist on the Nagios server
It should not exist on the nagios server, but on the oracle server (it probably already exists).
vendor-support wrote: I now get the following error:
CRITICAL - cannot connect to xxx.xxx.xxx.xxx:1521/sid. ORA-12514: TNS:listener does not currently know of service requested in connect descriptor (DBD ERROR: OCIServerAttach)
You need to edit the listener file on the oracle server to include the nagios server:
http://www.orafaq.com/wiki/Tnsnames.ora
This is something your dba should be able to do.
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.
vendor-support
Posts: 9
Joined: Thu Feb 13, 2014 6:00 pm
Location: Los Angeles
Contact:

Re: Oracle Plugin Issue

Post by vendor-support »

Yes thank you for your response, I figured it out last night just by chance... I wish the documentation was just a little more clear. It turns out the tnsnames.ora on the oracle server had a different SID descriptor that I had to change to match on the Nagios server.
Locked