LR monitors mysql under Linux with SNMP

Source: Internet
Author: User
Tags snmp

LR monitors mysql under Linux with SNMP

To install SNMPunder Linux:

1. Use system disk to install RPM package (this is the best way)

2. Download the NET-SNMP installation at www.net-snmp.org (you may not find the snmpd.conf file after installation)

Tar xzvf net-snmp-5.4.2.1.tar.gz
CD net-snmp-5.4.2.1
./configure
Here you will be asked to enter some information, one step (as if the second step) is asking what version to install: 1, 2, 3, enter 2 to return the car
All the others go straight to the car.
Make
Make install

After installation, an executable program is generated:/USR/LOCAL/SBIN/SNMPD

Use net-snmp*.tar.gz when installed, if you cannot find the snmpd.conf files, which can be extracted from the directory COPY a copy example.conf to the /usr/local/etc/snmp under, and renamed snmpd.conf ;
To modify the contents of a configuration file:

#sec. Name Source Community

Com2sec local 192.168.146.50 public //ip for monitoring server IP

Com2sec mynetwork192.168.146.0/24 public// network allowed to be monitored  

#context Sec.model sec.level Match Read Write Notif

Access Myrogroup "" Any noauth exact all None

Access Myrwgroup "" Any noauth exact all None

//read Write are for All

add monitoring in Lunnerrunner:

1. Control Scenario-RUN-Add SNMP to monitoring window

2, in the SNMP to the Monitoring window right click Add measure, add server and mysql PID

Add PID Path:mgmt--mib-2--host-hrswrunperf--runperftable--hrswrunperfenter--Hrswrunperfcpu (If you want to monitor memory then it should be ***mem) Find the required PID

(Note: Hrswrunperfcpu a large number of numbers, which represents the PID of each process, on the Linux server can be viewed via PS mysql pid)

LR monitors mysql under Linux with SNMP

Related Article

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.