LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-29-2008, 11:37 AM   #1
investmentbnker75
Member
 
Registered: Oct 2007
Location: Eastern Seaboard
Distribution: CentOS
Posts: 162

Rep: Reputation: 15
Nagios Oracle question


I have a main Nagios server that i monitor 12 other servers that run Oracle. To monitor the table spaces i use NRPE to run the check_oracle plugin and report back to the nagios server. I do this because when i set $ORACLE_SID on the nagios server im under the impression only one can be set, but i use different ORACLE_SIDS for each server.

Can more than one ORACLE_SID be defined on the nagios monitoring server so i can stop using NRPE to monitor the tables spaces on all of them? BTW i only have instant client installed on the Nagios server. Full oracle is on the db servers them selves.

Thanks!
 
Old 07-30-2008, 09:51 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
What we do here is we have Oracle client installed on the Nagios master. We setup tnsnames.ora as we would on any Oracle host on this Nagios master.

In services.cfg we enter things like:

To check our DB SID named "PROD":
Code:
define service{
        use                     generic-service
        host_name               ERPDB
        service_description     PROD: SID
        contact_groups          ux-admins, some-dbas, noc-op
        check_period            erpdb_prod
        check_command           check_oracle!--sid!PROD
        }
To check our DB SID named "REPORT":
Code:
define service{
        use                     generic-service
        host_name               RBACK
        service_description     REPORT: SID
        contact_groups          ux-admins, some-dbas, noc-op
        check_period            rback_report
        check_command           check_oracle!--sid!REPORT
        }
The check_oracle is defined in the checkcommands.cfg as:
Code:
# 'check_oracle' command definition
define command{
command_name    check_oracle
command_line    $USER1$/check_oracle.pl $ARG1$ $ARG2$
}
The check_oracle.pl in the libexec directory takes the arguments passed in and sets values based on what the services.cfg had specified. This means SID is a variable throughout. The specific command above by the way simply does a tnsping of the SID.

We do similar for NRPE access to the boxes where the databases live to check whether the listener and the pmon process are running. These are also use input from nrpe.cfg for variables on systems where we have multiple databases running.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Nagios and Oreon (Nagios web front end) installation and Configuration LXer Syndicated Linux News 1 05-31-2016 07:26 AM
Nagios NSclient question Mishra100 Linux - Software 4 11-08-2009 06:44 AM
Nagios Question? helptonewbie Linux - Software 0 04-22-2008 11:05 AM
LXer: Nagios 2.5 and Oreon 1.3 (Nagios web front end) installation with screenshots LXer Syndicated Linux News 0 08-11-2006 05:33 PM
nagios/oracle and java enzo250gto Linux - Software 0 09-02-2004 06:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration