This is my first posting. I’ve installed and configured nagios without any problem. I do even monitoring remote hosts fine with nrpe plug-in. It checks well and gives the accurate output. I have problems with check_oracle plug in.
ex, localbo:evil:testln:evil: where nagios server is running
remotebo:evil:oradb) where oracle server running with nrpe add ons installed.
I am doing this on localbox,
[nagios@testlnx libexec]$ /home/nagios/nagios/libexec/check_nrpe -H 10.192.2.239 -c check_tns
No TNS Listener on playdb1
One more thing, I have another oracle database to monitor through nagios. I made the same changes to the check_oracle on second db server. Pmon process running perfectly but not the tnsping as result it has the same error"no TNS listerner" but when I go to /tmp folder I only see one file which is /tmp/debug_pmon.txt but there is no file called /tmp/debug.txt. It looks to me that nrpe deamon was unable to run the --tns) section of check_oracle script.
The db and tns checks are very different: the db-check simply checks if there is an Oracle pmon-process running on the server, the tns-check uses an Oracle utility named tnsping…
We need to know what happens during the tnsping executed from the monitoring host. Please make a small change in the debugging, instead of looking at $tnschk2, let’s look at $tnschk :
Looks it won’t display the output instead there is some blank space come up as you can see in the file first portion is blank and then the path of ORACLE_HOME.
I am trying out with different senarios and let you know the results. Do you have any idea why it just shows a blank output?