Use SNMP and cloudmonitor to monitor the performance of linux vps servers

Source: Internet
Author: User
Tags vps

When we manage servers, the ipvsw system is more intuitive, including cpu usage, memory usage, and so on, as long as the task manager in the Remote Desktop is clear at a glance. However, in a linux environment, it is not that easy. In particular, large websites run on servers or vps. If server performance consumption cannot be detected in a timely manner, the website may be accessed during peak hours, I don't know what the problem is. Today we will introduce how to use SNMP and cloudmonitor to monitor vps performance and test the CentOS platform.

1. We need to install a component NET-SNMP command as follows:

Yum install net-snmp-devel net-snmp-utils

After you enter the command, you will be prompted to press y

  

 

2. Stop NET-SNMP after installation is complete

Service snmpd stop

  

 

3. Create an account, such as the account www.vpsck.com password 123456789. Note that the password must be 8 or more characters.

. Net-snmp-config -- create-snmpv3-user-ro-A 123456789-a MD5 www.vpsck.com

  

 

4. Start the NET-SNMP

Service snmpd start

5. Set to boot

Chkconfig snmpd on

6. Test whether it is normal.

Snmpwalk-v 3-u www.vpsck.com-a MD5-A "123456789"-l authNoPriv 127.0.0.1 sysDescr

If it runs normally, your server or vps name will be returned.

  

 

7. If iptables is enabled on the server or vps

You need to add the monitoring IP address command of the monitoring port SNMP to the rule:

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 servers have been set up. You can enter the monitoring project created by the monitoring platform (register an account under the monitoring platform Baidu)

9. Create a server performance monitoring project

  

 

10. Enter your own IP address and the password of the account you created earlier.

  

 

11. Select the project to be monitored. If it is the last vps of the OpenVZ architecture, do not select it. Otherwise, an error will be reported.

  

 

After completing the above steps, you have completed the server or vps performance monitoring configuration. You can also set an alarm in the configuration. If the performance exceeds the normal range, an email is automatically sent to you.

It allows you to adjust the server or upgrade the vps as soon as possible to ensure the normal operation of the website.

Source e blog: http://www.vpsck.com/319.html

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.