Nagios monitors the tablespace size of the Oralce database

Source: Internet
Author: User
Tags name database

First, install the Nrpe

This department uses the direct decompression method to install the Nrpe

Second, configure the Nrpe service

1. Modify the check_oracle in the Libexec folder

Add the following items in it

Oracle_home=/oradata/oracle/product/11.2.0path= $PATH:/oradata/oracle/product/11.2.0/bin

2. Add the following items in the nrpe.conf

Command[check_oracle_tablespace]=/usr/local/nagios/libexec/check_oracle--tablespace Listener name database user Database Password table name Critical alarm size Waring alarm size

Nrpe will report the following error after restarting

Cannot connect to adpdb. Ora-12154:tns:could not resolve the Connect identifierspecified (DBD error:ociserverattach)

Workaround:

This problem occurs because of insufficient permissions to add Nagios to the Oinstall group and restart Nrpe

[[email protected] nagios]# usermod-a-G oinstall nagios[[email protected] nagios]# killall nrpe[[email protected] Nagios ]#/usr/local/nagios/bin/nrpe-c/usr/local/nagios/etc/nrpe.cfg-d

Now we can monitor Oracle.

This article is from "It worker-small Maple" blog, please be sure to keep this source http://wangfeng7399.blog.51cto.com/3518031/1537297

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.