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