Using nagios to monitor oracle 10g (1)

Source: Internet
Author: User

UseNagiosMonitoringOracleThe specific method of 10 Gb is as follows:

1. Install NRPE on the server where Oracle is located

 
 
  1. #useradd nagios  
  2.  
  3. # wget http://nchc.dl.sourceforge.net/sourceforge/nagios/nrpe-2.12.tar.gz  
  4.  
  5. # tar xvfz nrpe-2.12.tar.gz  
  6.  
  7. # cd nrpe-2.12  
  8.  
  9. # ./configure --prefix=/usr/local/nagios  
  10.  
  11. # make all  
  12.  
  13. # make install-plugin  
  14.  
  15. # make install-daemon  
  16.  
  17. # make install-daemon-config  
  18.  
  19. # make install-xinetd  
  20.  

Note:

1. The nagios script needs to read oracle-related files. Therefore, users running nagios must be defined as oracle service users. Modify the configuration in/etc/xinted. d/nrpe.

Service nrpe

 
 
  1. {  
  2.  
  3. flags = REUSE  
  4.  
  5. socket_type = stream  
  6.  
  7. port = 5666  
  8.  
  9. wait = no  
  10.  
  11. user = oracle  
  12.  
  13. group = nagios  
  14.  
  15. server = /usr/local/nagios/bin/nrpe  
  16.  
  17. server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd  
  18.  
  19. log_on_failure += USERID  
  20.  
  21. disable = no  
  22.  
  23. only_from = 127.0.0.1 10.0.0.99  
  24.  
  25. }  
  26.  

2. Copy check_oracle and utils. sh in the libexec directory on the nagios server to the libexec directory on the oracle server and modify the check_oracle script. Manually add $ ORACLE_HOME and $ PATH.

 
 
  1. ORACLE_HOME=/home/oracle/OraHome_1  
  2.  
  3. PATH=$PATH:$ORACLE_HOME/bin  
  4.  


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.