[Nagios-users] ORACLE instance and CHECK_NRPE: No output returned from daemon

2006-04-04 Thread Sandeep Narasimha Murthy
Hello,

My command is invoking a script which verifies the state of an Oracle instance. 
My problem is when I invoke this command, I get a 
CHECK_NRPE: No output returned from daemon   Error. The problem has to be with 
invoking this script because if I substitute the code in the script with just 
an echo, it works fine.

I tried implementing what I had posted below earlier on but it doesn't work in 
this case.

Any ideas/ suggestions ??

thanks

sg

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sandeep 
Narasimha Murthy
Sent: quinta-feira, 30 de Março de 2006 16:51
To: nagios-users@lists.sourceforge.net
Subject: RE: [Nagios-users] NRPE: Unable to read output Problems

Hi again,

I solved the problem and thought I should share this here..

The reason I was getting an Unable to read Output error was because the output 
generated by the called script was not being deciphered by nagios. I had some 
java commands in the script and possibly Nagios couldn't invoke them..

I solved the issue by creating a new script which then invoked the main script 
and then read its contents back to nagios. 

sg

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sandeep 
Narasimha Murthy
Sent: quinta-feira, 30 de Março de 2006 11:30
To: nagios-users@lists.sourceforge.net
Subject: [Nagios-users] NRPE: Unable to read output Problems

Hi all,

I installed a new script in a remote server but on trying to invoke it
from my Nagios host with the command : 

./check_nrpesun -H 192.168.5.10  -p 5666 -t 5 -c check_wlheap

I get a "NRPE: Unable to read output " message.

Now, before anybody suggests that I check the file and directory
permissions, I have already done that and confirmed and reconfirmed that
the script has the proper permissions. :)

I have a number of scripts running on this remote server and all of them
run fine except for this one. All have the same permissions and are
configured Ok in the nrpe.cfg.

Is there anything else I should check for ?

TIA,

sg


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue.
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] ORACLE instance and CHECK_NRPE: No output returned from daemon

2006-04-04 Thread Jason Martin
On Tue, Apr 04, 2006 at 05:07:08PM +0100, Sandeep Narasimha Murthy wrote:
> My command is invoking a script which verifies the state of an Oracle 
> instance. My problem is when I invoke this command, I get a 
> CHECK_NRPE: No output returned from daemon   Error. The problem has to be 
> with invoking this script because if I substitute the code in the script with 
> just an echo, it works fine.
> 
> I tried implementing what I had posted below earlier on but it doesn't work 
> in this case.
Does the NRPE user have privileges to execute the script? Does
the script load all of its environmental dependencies (there is
no .profile loaded under NRPE)?

-Jason Martin
-- 
Computer Lie #1: You'll never use all that disk space.
This message is PGP/MIME signed.


pgpHr83o3DHNQ.pgp
Description: PGP signature


Re: [Nagios-users] ORACLE instance and CHECK_NRPE: No output returned from daemon

2006-04-04 Thread David Mansfield



Jason Martin wrote:

On Tue, Apr 04, 2006 at 05:07:08PM +0100, Sandeep Narasimha Murthy wrote:
My command is invoking a script which verifies the state of an Oracle instance. My problem is when I invoke this command, I get a 
CHECK_NRPE: No output returned from daemon   Error. The problem has to be with invoking this script because if I substitute the code in the script with just an echo, it works fine.


I tried implementing what I had posted below earlier on but it doesn't work in 
this case.

Does the NRPE user have privileges to execute the script? Does
the script load all of its environmental dependencies (there is
no .profile loaded under NRPE)?



I would tend to second the 'check your environment variables' 
suggestion.  Oracle (and binaries linked to oracle, include DBI::Perl 
etc). usually requires at least the following env. vars set to function):


ORACLE_SID
ORACLE_HOME
LD_LIBRARY_PATH

Good luck,
David


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null