Then we manage the server when the WINDOSW system is more intuitive, how much CPU use, how much bandwidth memory used, etc. as long as in the Remote Desktop Task Manager at a glance. But in the Linux environment is not so easy, especially the server or VPS running is a large web site, if you can not find the server performance consumption in time, it is likely to lead to the site in the peak visit, there is no known card death. So, eagle, then. This article describes how to use SNMP plus monitoring treasure to achieve VPS performance monitoring, test platform CentOS.
1. We need to install a component NET-SNMP command as follows:
Yum Install Net-snmp net-snmp-devel net-snmp-utils
When you enter a command, you have a prompt to press Y
2. Stop NET-SNMP first after installation
Service SNMPD Stop
3. Create an Account
such as account number www.vpsck.com password 123456789 note password need 8 digits and above
Net-snmp-config--create-snmpv3-user-ro-a 123456789-a MD5 vpsck
4. Start NET-SNMP
Service SNMPD Start
5. Set to boot
Chkconfig snmpd on
6. Whether the test is normal
Snmpwalk-v 3-u www.vpsck.com-a md5-a "123456789"-l authnopriv 127.0.0.1 SYSDESCR
If the operation is normal it will return your server or VPS name and other information
7. If the server or VPS is open iptables
You will need to add the monitor IP address command in the rule to:
Iptables-i input-p udp-s 60.195.252.107–dport 161-j ACCEPT
Iptables-i input-p udp-s 60.195.252.110–dport 161-j ACCEPT
8. The above server aspects are set up, you can enter the monitoring treasure to create a monitoring project
9. Create a server performance monitoring project
10. An image to fill in your own IP and previously created account password information:
11. Select the items that need to be monitored, if it is the last one of the VPS OpenVZ architecture, do not check otherwise will be an error.
Through the above steps to complete the server or VPS performance monitoring configuration, configuration can also set the alarm if the performance beyond the normal range will automatically send you an e-mail.
Can let you first time to adjust the server or VPS upgrades, to ensure the normal operation of the site.