Deploying Nagios monitoring on the MySQL server

Source: Internet
Author: User

Deploying Nagios monitoring on the MySQL server

Deploying Nagios monitoring on the MySQL server

-- Ulimit-n 65535
-- Monitor the forced installation of nagios Client
1. Install
[Root @ localhost nagios] # ll
Total 768
-Rw-r -- 1 root 713389 12-16 nagios-plugins-1.4.11-1.x86_64.rpm
-Rw-r -- 1 root 32706 12-16 nrpe-2.12-1.x86_64.rpm
-Rw-r -- 1 root 18997 12-16 nrpe-plugin-2.12-1.x86_64.rpm

Shell> rpm-ivh *. rpm -- nodeps -- force

2. Detection
[Root @ rdb-s108 nagios] #/usr/lib64/nagios/plugins/check_mysql-unagios-P3306-S-Hlocalhost-ppwdnagios-s/opt/mysql/product/mysql/mysql3306.sock- d test-w 60-c 100

3. Add it to the configuration file.
[Root @ rdb-s108 nagios] # vim/etc/nagios/nrpe. cfg

Command [check_mysqlapi] =/usr/lib64/nagios/plugins/check_mysql-unagios-P3306-S-Hlocalhost-ppwdnagios-s/opt/mysql/product/mysql/mysql3306.sock-d test -w 60-c 100
Add host server IP address monitoring
Allowed_hosts = 127.0.0.1, 192.168.188.110, 10.80.98.2

-- Grant Permissions
Chmod 775/usr/lib/nagios/plugins/check_mysql
-- View disk monitoring
Fdisk-l
Disk/dev/sda: 193.2 GB, 193273528320 bytes
255 heads, 63 sectors/track, 23497 cylinders
Units = cylinders of 16065*512 = 8225280 bytes

Device Boot Start End Blocks Id System
/Dev/sda1*1 13 104391 83 Linux
/Dev/sda2 14 23497 188635230 8e Linux LVM

Use/dev/sda after Disk as Disk monitoring

4. Failed to restart nagios.

5. Delete and then start
[Root @ rdb-s108 bin] # killall nrpe [] Delete first
[Root @ rdb-s108 local] #/usr/sbin/nrpe-c/etc/nagios/nrpe. cfg-d
[Root @ rdb-s108 local] #

6. vim "/etc/nagios/nrpe. cfg" depends on the situation.
Note: # command [check_hda1] =/usr/lib/nagios/plugins/check_disk-w 20%-c 10%-p/dev/hda1
Open: # command [check_disk] =/usr/lib/nagios/plugins/check_disk-w $ ARG1 $-c $ ARG2 $-p $ ARG3 $

Grant SUPER, replication client on *. * to nagios @ 'localhost' identified by 'pwdnagios ';

7. service nrpe status

8. Check
Shell> vim/etc/nagios/nrpe. cfg
Command [check_disk] =/usr/lib/nagios/plugins/check_disk-w 20%-c 10%-p/dev/sda
Shell> fdisk-l
Shell> service nrpe restart

Network Monitor Nagios Overview

Nagios construction and Configuration

Build a Nagios monitoring platform in the Nginx Environment

Configure the basic Nagios System on RHEL5.3 (using Nagios-3.1.2)

CentOS 5.5 + Nginx + Nagios monitoring and control terminal installation and Configuration Guide

Install Nagios Core for Ubuntu 13.10 Server

Nagios details: click here
Nagios: click here

This article permanently updates the link address:

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.