Environment settings for check_oracle
Voon, Ton
Ton.Voon at egg.com
Fri Apr 11 08:28:04 CEST 2003
My understanding of Oracle is that the oratab file (located usually in /etc
or /var/opt/oracle) holds the ORACLE_HOME and thus the location of the
binaries. This is on a per-SID basis and usually extracted with . oraenv (or
. coraenv).
Later versions of check_oracle (look in CVS on sourceforge) will take a sid
of * in the oratab to mean "use this as the default ORACLE_HOME", which
seems to be the convention at my workplace here. That way, only the
check_oracle plugin will pick up the Oracle variables. However, Mark
Ferlatte's suggestion of putting it in the startup script for Nagios would
also work (but maybe a bit baffling if you ever upgrade Oracle on the Nagios
server).
Ton
> -----Original Message-----
> From: Jeff Rendl [SMTP:jeff.rendl at ifsna.com]
> Sent: Thursday, April 10, 2003 5:07 PM
> To: 'nagios-users at lists.sourceforge.net'
> Subject: [Nagios-users] Environment settings for check_oracle
>
> The question is: How do I configure a "system-wide" environment variable
> in Linux so that my Nagios process (which starts as a service) has access
> to them? I am running Redhat V8.
>
> I'll admit it, I'm a Linux newbie, I figured most this stuff out (with
> help), but I'm stumped now. In order for the check_oracle plugin to work,
> it has to be able to access the ORACLE_HOME (amongst others) environment
> variables. I figured out how to make these available to my shell
> consistantly, but they aren't available to the NAGIOS process.
>
> Thanks!
This private and confidential e-mail has been sent to you by Egg.
The Egg group of companies includes Egg Banking plc
(registered no. 2999842), Egg Financial Products Ltd (registered
no. 3319027) and Egg Investments Ltd (registered no. 3403963) which
carries out investment business on behalf of Egg and is regulated
by the Financial Services Authority.
Registered in England and Wales. Registered offices: 1 Waterhouse Square,
138-142 Holborn, London EC1N 2NA.
If you are not the intended recipient of this e-mail and have
received it in error, please notify the sender by replying with
'received in error' as the subject and then delete it from your
mailbox.
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list