SlideShare a Scribd company logo
1 of 21
Monitoring Oracle with Opsview




Monday, 30 July 2012   © Opsview Ltd. Commercial in Confidence   2
About
• This ‘how to’ presentation describes how to monitor Oracle databases
  using Opsview
• If you don’t already have Opsview installed, visit our website and
  download Opsview Core (free), Opsview Pro (30 day trial) or request a trial
  to Opsview Enterprise.




                                                                                3
Monday, 30 July 2012      © Opsview Ltd. Commercial in Confidence
Introduction
• In our example scenario, we are testing against “Oracle
  Database 11g Express Edition”, however the monitoring
  should be uniform across all Oracle database platforms. Our
  Opsview server is running on Ubuntu 10.04 32-bit, however
  this document can be altered to fit RHEL/CentOS/SLES etc and
  also 32/64 bit with some slight changes.




                                                                 4
Monday, 30 July 2012   © Opsview Ltd. Commercial in Confidence
Installation
• Installation of the Oracle monitoring plugin requires
  installation of the Oracle “Instant Client”, along with the
  “alien” package and the check_oracle_health plugin we will
  be using.
• The steps needed are outlined later in this document.




                                                                 5
Monday, 30 July 2012   © Opsview Ltd. Commercial in Confidence
Installation
• Firstly, we will need to install our “alien” package, which we
  will need to convert the Oracle InstantClient files from .rpm to
  .deb (if we are installing on Debian/Ubuntu, if we are
  installing on CentOS/RHEL for example, we can leave it in the
  native .rpm format).
• To do this, run “apt-get install alien”, for example – or if you
  prefer, download the offline version and run a “dpkg –I
  alien…deb”.




                                                                     6
Monday, 30 July 2012   © Opsview Ltd. Commercial in Confidence
Installation
• Next, we will need to download the 3 Oracle client files and
  install them from the link:

http://www.oracle.com/technetwork/topics/linuxsoft-082809.html


• The files we need are:

oracle-instantclient11.2-basic-11.2.0.3.0-1.i386.rpm
oracle-instantclient11.2-devel-11.2.0.3.0-1.i386.rpm
oracle-instantclient11.2-sqlplus-11.2.0.3.0-1.i386.rpm


• However the file names may be slightly different, depending
  on version number and architecture (32 vs 64 bit). You may
  need to sign up for a www.oracle.com account if you do not
  already have one.
                                                                     7
Monday, 30 July 2012       © Opsview Ltd. Commercial in Confidence
Installation
• Now that we have the 3 RPM’s above, we will need to install
  them. On CentOS/RHEL, this is easily done via “rpm --ivh
  oracle…rpm”, in the order of “basic”, then “devel”, then
  “sqlplus”. If we are installing on Debian/Ubuntu, we will need
  to convert the .rpm to .deb using alien and then install, as
  below:

sudo   alien --to-deb oracle-instantclient11.2-basic-11.2.0.3.0-1.i386.rpm
dpkg   -i oracle-instantclient11.2-basic_11.2.0.3.0-2_i386.deb
sudo   alien --to-deb oracle-instantclient11.2-devel-11.2.0.3.0-1.i386.rpm
dpkg   -i oracle-instantclient11.2-devel_11.2.0.3.0-2_i386.deb
sudo   alien --to-deb oracle-instantclient11.2-sqlplus-11.2.0.3.0-1.i386.rpm
dpkg   -i oracle-instantclient11.2-devel_11.2.0.3.0-2_i386.deb




                                                                               8
Monday, 30 July 2012       © Opsview Ltd. Commercial in Confidence
Installation
• Next, we will need to set the bash variables of our user
  running the oracle client. To do this, we must edit the
  “~.bashrc” file, and add the lines below:

export ORACLE_HOME=/usr/lib/oracle/11.2/client
export PATH=$PATH:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib


• This points our variables to the correct location. Once set, we
  will need to load them into the active config via the command
  “source ~/.bashrc”.




                                                                    9
Monday, 30 July 2012     © Opsview Ltd. Commercial in Confidence
Installation
• 6Next, we will need to download the DBD::Oracle file needed
  to run the script. We can get this via the cpan CLI
  command, or via the link

http://search.cpan.org/CPAN/authors/id/P/PY/PYTHIAN/DBD-Oracle-1.44.tar.gz


• Once we have downloaded the file to our Opsview system, we
  will need to extract, and then compile, as below:

tar –zxvf DBD-Oracle-1.44.tar.gz
cd DBD-Oracle-1.44
perl MakeFile.PL
make
sudo make install




                                                                             10
Monday, 30 July 2012       © Opsview Ltd. Commercial in Confidence
Installation
• Now that we have installed DBD::Oracle, we will need to
  download and compile the plugin we will be using to monitor
  Oracle; called check_oracle_health (current version at writing
  is 1.7.3). To do this, we will need to run the commands below:
cd /tmp
wget http://labs.consol.de/wp-content/uploads/2011/09/check_oracle_health-1.7.3.tar.gz
tar –zxvf check_oracle_health-1.7.3.tar.gz
cd / check_oracle_health-1.7.3
./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-
group=nagios --with-perl=/usr/bin/perl --with-statefiles-dir=/tmp
make
sudo make install

• With these commands, we are configuring the plugin with the
  full paths to our Perl files, and our nagios files. The
  make/make install then compiles the plugin, and
  automatically moves it to the plugin directory (located at
  /usr/local/nagios/libexec).
                                                                                         11
Monday, 30 July 2012         © Opsview Ltd. Commercial in Confidence
Installation
• We can now test our plugin. First, let’s go to the plugin
  directory above; “cd /usr/local/nagios/libexec”. Now we can
  run the plugin against our oracle host using a simple tnsping,
  as below:

smarsh@demo:/usr/local/nagios/libexec$ ./check_oracle_health --
connect=192.168.12.126 --mode=tnsping
OK - connection established to 192.168.12.126


• Where “--connect=192…” is the location we specify our Oracle
  server, and “--mode=” is where we specify what we’d like to
  do, in this case a “tnsping”. As above, we should get a “OK –
  connection established” message, if not, or we get timeouts,
  please check to ensure that the ports are open on the firewall
  to allow connectivity.
                                                                   12
Monday, 30 July 2012     © Opsview Ltd. Commercial in Confidence
Installation
• Now that we have the plugin installed and tested working, we
  can begin the simpler task of configuring Opsview to utilize
  the plugin.

• Log into your Opsview installation, and click on “SETTINGS ->
  ATTRIBUTES” and click on the green “plus icon” in the top
  left. We will need to create 2 attributes, a “Oracle User” and
  an “Oracle Password”, which are the credentials we will use to
  login to the Oracle server.




                                                                   13
Monday, 30 July 2012   © Opsview Ltd. Commercial in Confidence
Installation
• NB: We could specify these manually in the service check, but
  the problem would arise if you wanted to monitor 2 Oracle
  servers with different credentials, you would need 2 different
  service checks as we hard coded them. This way is much more
  elegant. Visit our Opsview Configuration section for more
  information on attributes.
• Once we have added our attributes, we should have a screen
  as below:




                                                                   14
Monday, 30 July 2012   © Opsview Ltd. Commercial in Confidence
Installation
• Next, lets go to “SETTINGS -> SERVICE CHECKS”, and then
  the green “plus icon” in the top left. In the service check
  template, we can now begin to create our new service
  checks. In our example, we are going to monitor how
  much free space in MB we have in the “SYSTEM”
  tablespace, using the command:

“check_oracle_health --connect=$HOSTADDRESS$ --user=%ORAUSER% --
password=%ORAPWD% --name=system --mode=tablespace-free --units=MB”




                                                                     15
Monday, 30 July 2012     © Opsview Ltd. Commercial in Confidence
Installation
• As you can see, we have entered our new attributes into the
  service check. We can populate the service check to our liking,
  however the important point at this stage is to choose
  “check_oracle_health” in the plugins section, and enter:

“--connect=$HOSTADDRESS$ --user=%ORAUSER% --password=%ORAPWD% --name=system
--mode=tablespace-free --units=MB”


…in the arguments section, so we have a screen as below:




• Click on “submit changes”, and our new service check, in our
  example called “Oracle - Tablespace Free”, is created.
                                                                              16
Monday, 30 July 2012     © Opsview Ltd. Commercial in Confidence
Installation
• Next we need to add our Oracle host and add the new service
  check to it. To begin, navigate to “SETTINGS > HOSTS” and
  click the green plus icon in the top left.
• As per the standard way, enter the hostname/IP of the Oracle
  server in “Primary Hostname/IP”, and the verbose name we
  will reference it as, in the “Host Title” name; in our example
  we are going to refer to it as “Oracle”.
• Once we have configured the “HOST” tab, we will next need
  to move onto the “Monitors” tab, and select our new service
  check, as below:




                                                                   17
Monday, 30 July 2012   © Opsview Ltd. Commercial in Confidence
Installation
• Finally, we will need to click on the “ATTRIBUTES” tab, and
  add 2 new attributes; one for oracle user and one for oracle
  password, and populate with the correct details for the oracle
  host, as below:




• These values will be pulled into any service check ran against
  this host, that references the attributes %ORAPWD%, for
  example.
• Click on submit, and our new Oracle host with our new
  service checks will be created.
                                                                   18
Monday, 30 July 2012   © Opsview Ltd. Commercial in Confidence
Installation
• Finally, we will need to apply our changes. To do this, navigate
  to “SETTINGS > APPLY CHANGES” and click “reload
  configuration”.




• Our new host and service checks will now be active and
  running. To view them, navigate to “MONITORING > HOSTS”
  and click on your new host, Oracle, to view the service checks.


                                                                     19
Monday, 30 July 2012   © Opsview Ltd. Commercial in Confidence
Installation
• In our demo environment, we have the below service checks
  configured:




• However, there are many more to add and they are all
  available if you run the command “./check_oracle_health -h".
  Most are simply option changes after “--mode=”, and you add
  them exactly the same method as we did in the earlier steps.

                                                                 20
Monday, 30 July 2012   © Opsview Ltd. Commercial in Confidence
About Opsview
Opsview delivers a single unified view of the health of all your
distributed physical, virtual and hybrid cloud systems.

We give DevOps staff all the tools they need to get their jobs
done faster, easier and for less.

•    Opsview Enterprise offers large enterprises (+100 devices) and MSPs a
     certified, professionally supported network monitoring solution with enhanced
     functionality such as dynamic dashboards and reports

•    SMEs looking for feature-rich dashboards to monitor the performance of their on-
     premise, virtualized or cloud apps choose Opsview Pro

•    Opsview Core is our free, open source monitoring tool - you can test and
     customize it how you want


                                                                                        21
Monday, 30 July 2012          © Opsview Ltd. Commercial in Confidence

More Related Content

What's hot

Obiee 11g installation
Obiee 11g installationObiee 11g installation
Obiee 11g installationAmit Sharma
 
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7VCP Muthukrishna
 
Oracle SOA 12.2.1 Installation
Oracle SOA 12.2.1 InstallationOracle SOA 12.2.1 Installation
Oracle SOA 12.2.1 InstallationVijay Reddy
 
Install oracle siebel on windows 2008 r2
Install oracle siebel on windows 2008 r2Install oracle siebel on windows 2008 r2
Install oracle siebel on windows 2008 r2Osama Mustafa
 
Oracle SOA, BPM, OSB, BAM, & B2B 12C
Oracle SOA, BPM, OSB, BAM, & B2B 12COracle SOA, BPM, OSB, BAM, & B2B 12C
Oracle SOA, BPM, OSB, BAM, & B2B 12CRakesh Gujjarlapudi
 
How To Install and Configure AWS CLI on RHEL 7
How To Install and Configure AWS CLI on RHEL 7How To Install and Configure AWS CLI on RHEL 7
How To Install and Configure AWS CLI on RHEL 7VCP Muthukrishna
 
Oracle Web logic 12c on docker
Oracle Web logic 12c  on dockerOracle Web logic 12c  on docker
Oracle Web logic 12c on dockerK Kumar Guduru
 
Oracle 12cR2 Installation On Oracle Linux 7
Oracle 12cR2 Installation On Oracle Linux 7Oracle 12cR2 Installation On Oracle Linux 7
Oracle 12cR2 Installation On Oracle Linux 7Arun Sharma
 
How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7
How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7
How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7VCP Muthukrishna
 
Configuring OER Adapter for JDeveloper
Configuring OER Adapter for JDeveloperConfiguring OER Adapter for JDeveloper
Configuring OER Adapter for JDeveloperSreenivasa Setty
 
OER Reports and OBI Publisher
OER Reports and OBI PublisherOER Reports and OBI Publisher
OER Reports and OBI PublisherSreenivasa Setty
 
Oracle11g suse11 ilker bakir
Oracle11g suse11 ilker bakirOracle11g suse11 ilker bakir
Oracle11g suse11 ilker bakirilkerb
 
Oid installation presentation notes
Oid installation presentation notesOid installation presentation notes
Oid installation presentation notesKhemraj Dhondge
 
Rhel asmlib to_udev
Rhel asmlib to_udevRhel asmlib to_udev
Rhel asmlib to_udevMohsen B
 
Installing the Oracle SOA Suite on Red Hat 6
Installing the Oracle SOA Suite on Red Hat 6Installing the Oracle SOA Suite on Red Hat 6
Installing the Oracle SOA Suite on Red Hat 6TUSHAR VARSHNEY
 
Oracle SOA enterprise repositories Technical Overview
Oracle SOA enterprise repositories Technical OverviewOracle SOA enterprise repositories Technical Overview
Oracle SOA enterprise repositories Technical OverviewBiswanath Swain
 
SOA Fusion Middleware installation
SOA Fusion Middleware installationSOA Fusion Middleware installation
SOA Fusion Middleware installationMonowar Mukul
 

What's hot (20)

Obiee 11g installation
Obiee 11g installationObiee 11g installation
Obiee 11g installation
 
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
 
Oracle SOA 12.2.1 Installation
Oracle SOA 12.2.1 InstallationOracle SOA 12.2.1 Installation
Oracle SOA 12.2.1 Installation
 
Install oracle siebel on windows 2008 r2
Install oracle siebel on windows 2008 r2Install oracle siebel on windows 2008 r2
Install oracle siebel on windows 2008 r2
 
Oracle SOA, BPM, OSB, BAM, & B2B 12C
Oracle SOA, BPM, OSB, BAM, & B2B 12COracle SOA, BPM, OSB, BAM, & B2B 12C
Oracle SOA, BPM, OSB, BAM, & B2B 12C
 
How To Install and Configure AWS CLI on RHEL 7
How To Install and Configure AWS CLI on RHEL 7How To Install and Configure AWS CLI on RHEL 7
How To Install and Configure AWS CLI on RHEL 7
 
Oracle Web logic 12c on docker
Oracle Web logic 12c  on dockerOracle Web logic 12c  on docker
Oracle Web logic 12c on docker
 
Oracle 12cR2 Installation On Oracle Linux 7
Oracle 12cR2 Installation On Oracle Linux 7Oracle 12cR2 Installation On Oracle Linux 7
Oracle 12cR2 Installation On Oracle Linux 7
 
How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7
How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7
How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7
 
Installation CentOS 6.3
Installation CentOS 6.3Installation CentOS 6.3
Installation CentOS 6.3
 
Configuring OER Adapter for JDeveloper
Configuring OER Adapter for JDeveloperConfiguring OER Adapter for JDeveloper
Configuring OER Adapter for JDeveloper
 
OER Reports and OBI Publisher
OER Reports and OBI PublisherOER Reports and OBI Publisher
OER Reports and OBI Publisher
 
Oracle11g suse11 ilker bakir
Oracle11g suse11 ilker bakirOracle11g suse11 ilker bakir
Oracle11g suse11 ilker bakir
 
Oid installation presentation notes
Oid installation presentation notesOid installation presentation notes
Oid installation presentation notes
 
Installation
InstallationInstallation
Installation
 
OID Install and Config
OID Install and ConfigOID Install and Config
OID Install and Config
 
Rhel asmlib to_udev
Rhel asmlib to_udevRhel asmlib to_udev
Rhel asmlib to_udev
 
Installing the Oracle SOA Suite on Red Hat 6
Installing the Oracle SOA Suite on Red Hat 6Installing the Oracle SOA Suite on Red Hat 6
Installing the Oracle SOA Suite on Red Hat 6
 
Oracle SOA enterprise repositories Technical Overview
Oracle SOA enterprise repositories Technical OverviewOracle SOA enterprise repositories Technical Overview
Oracle SOA enterprise repositories Technical Overview
 
SOA Fusion Middleware installation
SOA Fusion Middleware installationSOA Fusion Middleware installation
SOA Fusion Middleware installation
 

Similar to Monitoring Oracle Databases with Opsview

Monitoring Server Temperature with Opsview
Monitoring Server Temperature with OpsviewMonitoring Server Temperature with Opsview
Monitoring Server Temperature with OpsviewOpsview
 
Monitoring Microsoft SQL Server 2008 with Opsview
Monitoring Microsoft SQL Server 2008 with OpsviewMonitoring Microsoft SQL Server 2008 with Opsview
Monitoring Microsoft SQL Server 2008 with OpsviewOpsview
 
UPGRADING FROM ORACLE ENTERPRISE MANAGER 10G TO CLOUD CONTROL 12C WITH ZERO D...
UPGRADING FROM ORACLE ENTERPRISE MANAGER 10G TO CLOUD CONTROL 12C WITH ZERO D...UPGRADING FROM ORACLE ENTERPRISE MANAGER 10G TO CLOUD CONTROL 12C WITH ZERO D...
UPGRADING FROM ORACLE ENTERPRISE MANAGER 10G TO CLOUD CONTROL 12C WITH ZERO D...Leighton Nelson
 
How To Deploy a Clojure Web Application on Ubuntu 14.04
How To Deploy a Clojure Web Application on Ubuntu 14.04How To Deploy a Clojure Web Application on Ubuntu 14.04
How To Deploy a Clojure Web Application on Ubuntu 14.04VEXXHOST Private Cloud
 
Oracle olap-installation
Oracle olap-installationOracle olap-installation
Oracle olap-installationAmit Sharma
 
Creating Custom Notifications in Opsview
Creating Custom Notifications in OpsviewCreating Custom Notifications in Opsview
Creating Custom Notifications in OpsviewOpsview
 
Real-Time Query for Data Guard
Real-Time Query for Data Guard Real-Time Query for Data Guard
Real-Time Query for Data Guard Uwe Hesse
 
Externalized Distributed Configuration Management with Spring Cloud Config-Se...
Externalized Distributed Configuration Management with Spring Cloud Config-Se...Externalized Distributed Configuration Management with Spring Cloud Config-Se...
Externalized Distributed Configuration Management with Spring Cloud Config-Se...Nikhil Hiremath
 
Oracle ORAchk & EXAchk overview
Oracle ORAchk & EXAchk overviewOracle ORAchk & EXAchk overview
Oracle ORAchk & EXAchk overviewGareth Chapman
 
Exachk Customer Presentation
Exachk Customer PresentationExachk Customer Presentation
Exachk Customer PresentationSandesh Rao
 
Weblogic 12c Graphical Mode installation steps in Windows
Weblogic 12c Graphical Mode installation steps in Windows Weblogic 12c Graphical Mode installation steps in Windows
Weblogic 12c Graphical Mode installation steps in Windows webservicesm
 
12c weblogic installation steps for Windows
12c weblogic installation steps for Windows12c weblogic installation steps for Windows
12c weblogic installation steps for WindowsCognizant
 
End to End Monitoring using Nested Keywords
End to End Monitoring using Nested KeywordsEnd to End Monitoring using Nested Keywords
End to End Monitoring using Nested KeywordsOpsview
 
oozieee.pdf
oozieee.pdfoozieee.pdf
oozieee.pdfwwww63
 
2016_1201_gangler_ppt
2016_1201_gangler_ppt2016_1201_gangler_ppt
2016_1201_gangler_pptSecure-24
 
Using RPM's to Automagically to install Oracle Agents to EM12C
Using RPM's to Automagically to install Oracle Agents to EM12CUsing RPM's to Automagically to install Oracle Agents to EM12C
Using RPM's to Automagically to install Oracle Agents to EM12CSecure-24
 

Similar to Monitoring Oracle Databases with Opsview (20)

Monitoring Server Temperature with Opsview
Monitoring Server Temperature with OpsviewMonitoring Server Temperature with Opsview
Monitoring Server Temperature with Opsview
 
Monitoring Microsoft SQL Server 2008 with Opsview
Monitoring Microsoft SQL Server 2008 with OpsviewMonitoring Microsoft SQL Server 2008 with Opsview
Monitoring Microsoft SQL Server 2008 with Opsview
 
UPGRADING FROM ORACLE ENTERPRISE MANAGER 10G TO CLOUD CONTROL 12C WITH ZERO D...
UPGRADING FROM ORACLE ENTERPRISE MANAGER 10G TO CLOUD CONTROL 12C WITH ZERO D...UPGRADING FROM ORACLE ENTERPRISE MANAGER 10G TO CLOUD CONTROL 12C WITH ZERO D...
UPGRADING FROM ORACLE ENTERPRISE MANAGER 10G TO CLOUD CONTROL 12C WITH ZERO D...
 
How To Deploy a Clojure Web Application on Ubuntu 14.04
How To Deploy a Clojure Web Application on Ubuntu 14.04How To Deploy a Clojure Web Application on Ubuntu 14.04
How To Deploy a Clojure Web Application on Ubuntu 14.04
 
Oracle olap-installation
Oracle olap-installationOracle olap-installation
Oracle olap-installation
 
Creating Custom Notifications in Opsview
Creating Custom Notifications in OpsviewCreating Custom Notifications in Opsview
Creating Custom Notifications in Opsview
 
Em13c New Features- One of Two
Em13c New Features- One of TwoEm13c New Features- One of Two
Em13c New Features- One of Two
 
Real-Time Query for Data Guard
Real-Time Query for Data Guard Real-Time Query for Data Guard
Real-Time Query for Data Guard
 
Externalized Distributed Configuration Management with Spring Cloud Config-Se...
Externalized Distributed Configuration Management with Spring Cloud Config-Se...Externalized Distributed Configuration Management with Spring Cloud Config-Se...
Externalized Distributed Configuration Management with Spring Cloud Config-Se...
 
Oracle ORAchk & EXAchk overview
Oracle ORAchk & EXAchk overviewOracle ORAchk & EXAchk overview
Oracle ORAchk & EXAchk overview
 
Exachk Customer Presentation
Exachk Customer PresentationExachk Customer Presentation
Exachk Customer Presentation
 
Upgrading Em13c Collaborate 2016
Upgrading Em13c Collaborate 2016Upgrading Em13c Collaborate 2016
Upgrading Em13c Collaborate 2016
 
Weblogic 12c Graphical Mode installation steps in Windows
Weblogic 12c Graphical Mode installation steps in Windows Weblogic 12c Graphical Mode installation steps in Windows
Weblogic 12c Graphical Mode installation steps in Windows
 
12c weblogic installation steps for Windows
12c weblogic installation steps for Windows12c weblogic installation steps for Windows
12c weblogic installation steps for Windows
 
End to End Monitoring using Nested Keywords
End to End Monitoring using Nested KeywordsEnd to End Monitoring using Nested Keywords
End to End Monitoring using Nested Keywords
 
Em13c features- HotSos 2016
Em13c features- HotSos 2016Em13c features- HotSos 2016
Em13c features- HotSos 2016
 
oozieee.pdf
oozieee.pdfoozieee.pdf
oozieee.pdf
 
2016_1201_gangler_ppt
2016_1201_gangler_ppt2016_1201_gangler_ppt
2016_1201_gangler_ppt
 
Using RPM's to Automagically to install Oracle Agents to EM12C
Using RPM's to Automagically to install Oracle Agents to EM12CUsing RPM's to Automagically to install Oracle Agents to EM12C
Using RPM's to Automagically to install Oracle Agents to EM12C
 
Oracle WebLogic
Oracle WebLogicOracle WebLogic
Oracle WebLogic
 

Recently uploaded

08448380779 Call Girls In IIT Women Seeking Men
08448380779 Call Girls In IIT Women Seeking Men08448380779 Call Girls In IIT Women Seeking Men
08448380779 Call Girls In IIT Women Seeking MenDelhi Call girls
 
Plan d'orientations stratégiques rugby féminin
Plan d'orientations stratégiques rugby fémininPlan d'orientations stratégiques rugby féminin
Plan d'orientations stratégiques rugby fémininThibaut TATRY
 
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best Female service 🦺
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best Female service  🦺CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best Female service  🦺
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best Female service 🦺anilsa9823
 
TAM Sports_IPL 17 Till Match 37_Celebrity Endorsement _Report.pdf
TAM Sports_IPL 17 Till Match 37_Celebrity Endorsement _Report.pdfTAM Sports_IPL 17 Till Match 37_Celebrity Endorsement _Report.pdf
TAM Sports_IPL 17 Till Match 37_Celebrity Endorsement _Report.pdfSocial Samosa
 
ppt on Myself, Occupation and my Interest
ppt on Myself, Occupation and my Interestppt on Myself, Occupation and my Interest
ppt on Myself, Occupation and my InterestNagaissenValaydum
 
大学假文凭《原版英国Imperial文凭》帝国理工学院毕业证制作成绩单修改
大学假文凭《原版英国Imperial文凭》帝国理工学院毕业证制作成绩单修改大学假文凭《原版英国Imperial文凭》帝国理工学院毕业证制作成绩单修改
大学假文凭《原版英国Imperial文凭》帝国理工学院毕业证制作成绩单修改atducpo
 
JORNADA 4 LIGA MURO 2024TUXTEPEC1234.pdf
JORNADA 4 LIGA MURO 2024TUXTEPEC1234.pdfJORNADA 4 LIGA MURO 2024TUXTEPEC1234.pdf
JORNADA 4 LIGA MURO 2024TUXTEPEC1234.pdfArturo Pacheco Alvarez
 
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual serviceanilsa9823
 
Albania Vs Spain Albania is Loaded with Defensive Talent on their Roster.docx
Albania Vs Spain Albania is Loaded with Defensive Talent on their Roster.docxAlbania Vs Spain Albania is Loaded with Defensive Talent on their Roster.docx
Albania Vs Spain Albania is Loaded with Defensive Talent on their Roster.docxWorld Wide Tickets And Hospitality
 
Italy vs Albania Tickets: Italy's Quest for Euro Cup Germany History, Defendi...
Italy vs Albania Tickets: Italy's Quest for Euro Cup Germany History, Defendi...Italy vs Albania Tickets: Italy's Quest for Euro Cup Germany History, Defendi...
Italy vs Albania Tickets: Italy's Quest for Euro Cup Germany History, Defendi...Eticketing.co
 
ALL NFL NETWORK CONTACTS- April 29, 2024
ALL NFL NETWORK CONTACTS- April 29, 2024ALL NFL NETWORK CONTACTS- April 29, 2024
ALL NFL NETWORK CONTACTS- April 29, 2024Brian Slack
 
Croatia vs Albania Clash of Euro Cup 2024 Squad Preparations and Euro Cup Dre...
Croatia vs Albania Clash of Euro Cup 2024 Squad Preparations and Euro Cup Dre...Croatia vs Albania Clash of Euro Cup 2024 Squad Preparations and Euro Cup Dre...
Croatia vs Albania Clash of Euro Cup 2024 Squad Preparations and Euro Cup Dre...Eticketing.co
 
JORNADA 5 LIGA MURO 2024INSUGURACION.pdf
JORNADA 5 LIGA MURO 2024INSUGURACION.pdfJORNADA 5 LIGA MURO 2024INSUGURACION.pdf
JORNADA 5 LIGA MURO 2024INSUGURACION.pdfArturo Pacheco Alvarez
 
🔝|97111༒99012🔝 Call Girls In {Delhi} Cr Park ₹5.5k Cash Payment With Room De...
🔝|97111༒99012🔝 Call Girls In  {Delhi} Cr Park ₹5.5k Cash Payment With Room De...🔝|97111༒99012🔝 Call Girls In  {Delhi} Cr Park ₹5.5k Cash Payment With Room De...
🔝|97111༒99012🔝 Call Girls In {Delhi} Cr Park ₹5.5k Cash Payment With Room De...Diya Sharma
 
Jankipuram / Call Girls Lucknow | Whatsapp No 🫗 8923113531 🎳 VIP Escorts Serv...
Jankipuram / Call Girls Lucknow | Whatsapp No 🫗 8923113531 🎳 VIP Escorts Serv...Jankipuram / Call Girls Lucknow | Whatsapp No 🫗 8923113531 🎳 VIP Escorts Serv...
Jankipuram / Call Girls Lucknow | Whatsapp No 🫗 8923113531 🎳 VIP Escorts Serv...gurkirankumar98700
 
Tableaux 9ème étape circuit fédéral 2024
Tableaux 9ème étape circuit fédéral 2024Tableaux 9ème étape circuit fédéral 2024
Tableaux 9ème étape circuit fédéral 2024HechemLaameri
 
08448380779 Call Girls In International Airport Women Seeking Men
08448380779 Call Girls In International Airport Women Seeking Men08448380779 Call Girls In International Airport Women Seeking Men
08448380779 Call Girls In International Airport Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

08448380779 Call Girls In IIT Women Seeking Men
08448380779 Call Girls In IIT Women Seeking Men08448380779 Call Girls In IIT Women Seeking Men
08448380779 Call Girls In IIT Women Seeking Men
 
Call Girls In RK Puram 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In RK Puram 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICECall Girls In RK Puram 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In RK Puram 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
 
Plan d'orientations stratégiques rugby féminin
Plan d'orientations stratégiques rugby fémininPlan d'orientations stratégiques rugby féminin
Plan d'orientations stratégiques rugby féminin
 
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best Female service 🦺
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best Female service  🦺CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best Female service  🦺
CALL ON ➥8923113531 🔝Call Girls Saharaganj Lucknow best Female service 🦺
 
TAM Sports_IPL 17 Till Match 37_Celebrity Endorsement _Report.pdf
TAM Sports_IPL 17 Till Match 37_Celebrity Endorsement _Report.pdfTAM Sports_IPL 17 Till Match 37_Celebrity Endorsement _Report.pdf
TAM Sports_IPL 17 Till Match 37_Celebrity Endorsement _Report.pdf
 
ppt on Myself, Occupation and my Interest
ppt on Myself, Occupation and my Interestppt on Myself, Occupation and my Interest
ppt on Myself, Occupation and my Interest
 
大学假文凭《原版英国Imperial文凭》帝国理工学院毕业证制作成绩单修改
大学假文凭《原版英国Imperial文凭》帝国理工学院毕业证制作成绩单修改大学假文凭《原版英国Imperial文凭》帝国理工学院毕业证制作成绩单修改
大学假文凭《原版英国Imperial文凭》帝国理工学院毕业证制作成绩单修改
 
JORNADA 4 LIGA MURO 2024TUXTEPEC1234.pdf
JORNADA 4 LIGA MURO 2024TUXTEPEC1234.pdfJORNADA 4 LIGA MURO 2024TUXTEPEC1234.pdf
JORNADA 4 LIGA MURO 2024TUXTEPEC1234.pdf
 
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Chinhat Lucknow best sexual service
 
Call Girls 🫤 Malviya Nagar ➡️ 9999965857 ➡️ Delhi 🫦 Russian Escorts FULL ENJOY
Call Girls 🫤 Malviya Nagar ➡️ 9999965857  ➡️ Delhi 🫦  Russian Escorts FULL ENJOYCall Girls 🫤 Malviya Nagar ➡️ 9999965857  ➡️ Delhi 🫦  Russian Escorts FULL ENJOY
Call Girls 🫤 Malviya Nagar ➡️ 9999965857 ➡️ Delhi 🫦 Russian Escorts FULL ENJOY
 
Albania Vs Spain Albania is Loaded with Defensive Talent on their Roster.docx
Albania Vs Spain Albania is Loaded with Defensive Talent on their Roster.docxAlbania Vs Spain Albania is Loaded with Defensive Talent on their Roster.docx
Albania Vs Spain Albania is Loaded with Defensive Talent on their Roster.docx
 
Italy vs Albania Tickets: Italy's Quest for Euro Cup Germany History, Defendi...
Italy vs Albania Tickets: Italy's Quest for Euro Cup Germany History, Defendi...Italy vs Albania Tickets: Italy's Quest for Euro Cup Germany History, Defendi...
Italy vs Albania Tickets: Italy's Quest for Euro Cup Germany History, Defendi...
 
ALL NFL NETWORK CONTACTS- April 29, 2024
ALL NFL NETWORK CONTACTS- April 29, 2024ALL NFL NETWORK CONTACTS- April 29, 2024
ALL NFL NETWORK CONTACTS- April 29, 2024
 
Croatia vs Albania Clash of Euro Cup 2024 Squad Preparations and Euro Cup Dre...
Croatia vs Albania Clash of Euro Cup 2024 Squad Preparations and Euro Cup Dre...Croatia vs Albania Clash of Euro Cup 2024 Squad Preparations and Euro Cup Dre...
Croatia vs Albania Clash of Euro Cup 2024 Squad Preparations and Euro Cup Dre...
 
JORNADA 5 LIGA MURO 2024INSUGURACION.pdf
JORNADA 5 LIGA MURO 2024INSUGURACION.pdfJORNADA 5 LIGA MURO 2024INSUGURACION.pdf
JORNADA 5 LIGA MURO 2024INSUGURACION.pdf
 
🔝|97111༒99012🔝 Call Girls In {Delhi} Cr Park ₹5.5k Cash Payment With Room De...
🔝|97111༒99012🔝 Call Girls In  {Delhi} Cr Park ₹5.5k Cash Payment With Room De...🔝|97111༒99012🔝 Call Girls In  {Delhi} Cr Park ₹5.5k Cash Payment With Room De...
🔝|97111༒99012🔝 Call Girls In {Delhi} Cr Park ₹5.5k Cash Payment With Room De...
 
Jankipuram / Call Girls Lucknow | Whatsapp No 🫗 8923113531 🎳 VIP Escorts Serv...
Jankipuram / Call Girls Lucknow | Whatsapp No 🫗 8923113531 🎳 VIP Escorts Serv...Jankipuram / Call Girls Lucknow | Whatsapp No 🫗 8923113531 🎳 VIP Escorts Serv...
Jankipuram / Call Girls Lucknow | Whatsapp No 🫗 8923113531 🎳 VIP Escorts Serv...
 
Tableaux 9ème étape circuit fédéral 2024
Tableaux 9ème étape circuit fédéral 2024Tableaux 9ème étape circuit fédéral 2024
Tableaux 9ème étape circuit fédéral 2024
 
Call Girls Service Noida Extension @9999965857 Delhi 🫦 No Advance VVIP 🍎 SER...
Call Girls Service Noida Extension @9999965857 Delhi 🫦 No Advance  VVIP 🍎 SER...Call Girls Service Noida Extension @9999965857 Delhi 🫦 No Advance  VVIP 🍎 SER...
Call Girls Service Noida Extension @9999965857 Delhi 🫦 No Advance VVIP 🍎 SER...
 
08448380779 Call Girls In International Airport Women Seeking Men
08448380779 Call Girls In International Airport Women Seeking Men08448380779 Call Girls In International Airport Women Seeking Men
08448380779 Call Girls In International Airport Women Seeking Men
 

Monitoring Oracle Databases with Opsview

  • 1.
  • 2. Monitoring Oracle with Opsview Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence 2
  • 3. About • This ‘how to’ presentation describes how to monitor Oracle databases using Opsview • If you don’t already have Opsview installed, visit our website and download Opsview Core (free), Opsview Pro (30 day trial) or request a trial to Opsview Enterprise. 3 Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  • 4. Introduction • In our example scenario, we are testing against “Oracle Database 11g Express Edition”, however the monitoring should be uniform across all Oracle database platforms. Our Opsview server is running on Ubuntu 10.04 32-bit, however this document can be altered to fit RHEL/CentOS/SLES etc and also 32/64 bit with some slight changes. 4 Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  • 5. Installation • Installation of the Oracle monitoring plugin requires installation of the Oracle “Instant Client”, along with the “alien” package and the check_oracle_health plugin we will be using. • The steps needed are outlined later in this document. 5 Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  • 6. Installation • Firstly, we will need to install our “alien” package, which we will need to convert the Oracle InstantClient files from .rpm to .deb (if we are installing on Debian/Ubuntu, if we are installing on CentOS/RHEL for example, we can leave it in the native .rpm format). • To do this, run “apt-get install alien”, for example – or if you prefer, download the offline version and run a “dpkg –I alien…deb”. 6 Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  • 7. Installation • Next, we will need to download the 3 Oracle client files and install them from the link: http://www.oracle.com/technetwork/topics/linuxsoft-082809.html • The files we need are: oracle-instantclient11.2-basic-11.2.0.3.0-1.i386.rpm oracle-instantclient11.2-devel-11.2.0.3.0-1.i386.rpm oracle-instantclient11.2-sqlplus-11.2.0.3.0-1.i386.rpm • However the file names may be slightly different, depending on version number and architecture (32 vs 64 bit). You may need to sign up for a www.oracle.com account if you do not already have one. 7 Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  • 8. Installation • Now that we have the 3 RPM’s above, we will need to install them. On CentOS/RHEL, this is easily done via “rpm --ivh oracle…rpm”, in the order of “basic”, then “devel”, then “sqlplus”. If we are installing on Debian/Ubuntu, we will need to convert the .rpm to .deb using alien and then install, as below: sudo alien --to-deb oracle-instantclient11.2-basic-11.2.0.3.0-1.i386.rpm dpkg -i oracle-instantclient11.2-basic_11.2.0.3.0-2_i386.deb sudo alien --to-deb oracle-instantclient11.2-devel-11.2.0.3.0-1.i386.rpm dpkg -i oracle-instantclient11.2-devel_11.2.0.3.0-2_i386.deb sudo alien --to-deb oracle-instantclient11.2-sqlplus-11.2.0.3.0-1.i386.rpm dpkg -i oracle-instantclient11.2-devel_11.2.0.3.0-2_i386.deb 8 Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  • 9. Installation • Next, we will need to set the bash variables of our user running the oracle client. To do this, we must edit the “~.bashrc” file, and add the lines below: export ORACLE_HOME=/usr/lib/oracle/11.2/client export PATH=$PATH:$ORACLE_HOME/bin export LD_LIBRARY_PATH=$ORACLE_HOME/lib • This points our variables to the correct location. Once set, we will need to load them into the active config via the command “source ~/.bashrc”. 9 Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  • 10. Installation • 6Next, we will need to download the DBD::Oracle file needed to run the script. We can get this via the cpan CLI command, or via the link http://search.cpan.org/CPAN/authors/id/P/PY/PYTHIAN/DBD-Oracle-1.44.tar.gz • Once we have downloaded the file to our Opsview system, we will need to extract, and then compile, as below: tar –zxvf DBD-Oracle-1.44.tar.gz cd DBD-Oracle-1.44 perl MakeFile.PL make sudo make install 10 Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  • 11. Installation • Now that we have installed DBD::Oracle, we will need to download and compile the plugin we will be using to monitor Oracle; called check_oracle_health (current version at writing is 1.7.3). To do this, we will need to run the commands below: cd /tmp wget http://labs.consol.de/wp-content/uploads/2011/09/check_oracle_health-1.7.3.tar.gz tar –zxvf check_oracle_health-1.7.3.tar.gz cd / check_oracle_health-1.7.3 ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios- group=nagios --with-perl=/usr/bin/perl --with-statefiles-dir=/tmp make sudo make install • With these commands, we are configuring the plugin with the full paths to our Perl files, and our nagios files. The make/make install then compiles the plugin, and automatically moves it to the plugin directory (located at /usr/local/nagios/libexec). 11 Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  • 12. Installation • We can now test our plugin. First, let’s go to the plugin directory above; “cd /usr/local/nagios/libexec”. Now we can run the plugin against our oracle host using a simple tnsping, as below: smarsh@demo:/usr/local/nagios/libexec$ ./check_oracle_health -- connect=192.168.12.126 --mode=tnsping OK - connection established to 192.168.12.126 • Where “--connect=192…” is the location we specify our Oracle server, and “--mode=” is where we specify what we’d like to do, in this case a “tnsping”. As above, we should get a “OK – connection established” message, if not, or we get timeouts, please check to ensure that the ports are open on the firewall to allow connectivity. 12 Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  • 13. Installation • Now that we have the plugin installed and tested working, we can begin the simpler task of configuring Opsview to utilize the plugin. • Log into your Opsview installation, and click on “SETTINGS -> ATTRIBUTES” and click on the green “plus icon” in the top left. We will need to create 2 attributes, a “Oracle User” and an “Oracle Password”, which are the credentials we will use to login to the Oracle server. 13 Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  • 14. Installation • NB: We could specify these manually in the service check, but the problem would arise if you wanted to monitor 2 Oracle servers with different credentials, you would need 2 different service checks as we hard coded them. This way is much more elegant. Visit our Opsview Configuration section for more information on attributes. • Once we have added our attributes, we should have a screen as below: 14 Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  • 15. Installation • Next, lets go to “SETTINGS -> SERVICE CHECKS”, and then the green “plus icon” in the top left. In the service check template, we can now begin to create our new service checks. In our example, we are going to monitor how much free space in MB we have in the “SYSTEM” tablespace, using the command: “check_oracle_health --connect=$HOSTADDRESS$ --user=%ORAUSER% -- password=%ORAPWD% --name=system --mode=tablespace-free --units=MB” 15 Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  • 16. Installation • As you can see, we have entered our new attributes into the service check. We can populate the service check to our liking, however the important point at this stage is to choose “check_oracle_health” in the plugins section, and enter: “--connect=$HOSTADDRESS$ --user=%ORAUSER% --password=%ORAPWD% --name=system --mode=tablespace-free --units=MB” …in the arguments section, so we have a screen as below: • Click on “submit changes”, and our new service check, in our example called “Oracle - Tablespace Free”, is created. 16 Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  • 17. Installation • Next we need to add our Oracle host and add the new service check to it. To begin, navigate to “SETTINGS > HOSTS” and click the green plus icon in the top left. • As per the standard way, enter the hostname/IP of the Oracle server in “Primary Hostname/IP”, and the verbose name we will reference it as, in the “Host Title” name; in our example we are going to refer to it as “Oracle”. • Once we have configured the “HOST” tab, we will next need to move onto the “Monitors” tab, and select our new service check, as below: 17 Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  • 18. Installation • Finally, we will need to click on the “ATTRIBUTES” tab, and add 2 new attributes; one for oracle user and one for oracle password, and populate with the correct details for the oracle host, as below: • These values will be pulled into any service check ran against this host, that references the attributes %ORAPWD%, for example. • Click on submit, and our new Oracle host with our new service checks will be created. 18 Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  • 19. Installation • Finally, we will need to apply our changes. To do this, navigate to “SETTINGS > APPLY CHANGES” and click “reload configuration”. • Our new host and service checks will now be active and running. To view them, navigate to “MONITORING > HOSTS” and click on your new host, Oracle, to view the service checks. 19 Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  • 20. Installation • In our demo environment, we have the below service checks configured: • However, there are many more to add and they are all available if you run the command “./check_oracle_health -h". Most are simply option changes after “--mode=”, and you add them exactly the same method as we did in the earlier steps. 20 Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  • 21. About Opsview Opsview delivers a single unified view of the health of all your distributed physical, virtual and hybrid cloud systems. We give DevOps staff all the tools they need to get their jobs done faster, easier and for less. • Opsview Enterprise offers large enterprises (+100 devices) and MSPs a certified, professionally supported network monitoring solution with enhanced functionality such as dynamic dashboards and reports • SMEs looking for feature-rich dashboards to monitor the performance of their on- premise, virtualized or cloud apps choose Opsview Pro • Opsview Core is our free, open source monitoring tool - you can test and customize it how you want 21 Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence