[Nagiosplug-help] "check_nrpe -H 10.x.x.x -c check_ora_tns" ----> "ERROR: CANNOT DETERMINE ORACL
Justin Amburn
justinjoseph24 at hotmail.com
Tue Apr 1 06:38:52 CEST 2008
The problem was that xinetd has its own environment vars that were not
being passed until I told it to do so. Now I can run './check_nrpe -H
10.200.2.50 -c check_db' with nrpe config alias as:
check_db=/usr/local/nagios/libexec/check_oracle --db DBPRD
but I cannot have the alias as:
check_db=/usr/local/nagios/libexec/check_oracle --db $ORACLE_SID
it passes an empty variable to the program. but only if it's run
remotely from nagios very strange. It works when logged in as nagios
running locally. I'm not even attempting to pass any $ARGS$.
Vonnahme, Nathan wrote:
>
> Why do you have redundant "export" statements?
>
> On the remote machine, try manually running the check with a blank
> enviroinment, e.g.
>
> env - /usr/local/nagios/libexec/check_oracle --tns DBPRD
>
> *From:* nagiosplug-help-bounces at lists.sourceforge.net
> [mailto:nagiosplug-help-bounces at lists.sourceforge.net] *On Behalf Of
> *Justin Amburn
> *Sent:* Thursday, March 27, 2008 8:47 PM
> *To:* nagiosplug-help at lists.sourceforge.net
> *Subject:* [Nagiosplug-help] "check_nrpe -H 10.x.x.x -c check_ora_tns"
> ----> "ERROR: CANNOT DETERMINE ORACLE_HOME FOR SID xxxxx"
>
>
>
> In the beginning of the check_oracle script I added:
>
> export PATH=$PATH:/u1/apps/oracle/product/10.2.0/bin;export PATH
> export ORACLE_HOME=/u1/apps/oracle/product/10.2.0;export ORACLE_HOME
> export ORACLE_SID=BABYCPRD;export ORACLE_SID
> ORACLE_BASE=/u1/apps/oracle
>
>
> What am I doing wrong???
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20080331/2fe452c3/attachment.html>
More information about the Help
mailing list