Simple server performance monitoring using SNMP + monitoring Bao

Source: Internet
Author: User
Tags vps
It is also necessary to perform basic monitoring on a single server or VPS. In the past, Zhao Rong did not monitor VPS, because when some servers were added, his performance became even more tense. There are also a lot of foreign server performance monitoring websites, but it is a little difficult for people like Zhao Rong who rely on Google to read English. Therefore, we will share with you the simple server performance monitoring implemented by using SNMP + monitoring treasure. We recommend using NE for cloudmonitor.

It is also necessary to perform basic monitoring on a single server or VPS. In the past, Zhao Rong did not monitor VPS, because when some servers were added, his performance became even more tense. There are also a lot of foreign server performance monitoring websites, but it is a little difficult for people like Zhao Rong who rely on Google to read English. Therefore, we will share with you the simple server performance monitoring implemented by using SNMP + monitoring treasure.

Monitoring treasure is recommended to use NET-SNMP, so this article also take this as an example.

First, install NET-SNMP.

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

Next, we will configure NET-SNMP.

Before configuring SELinux, make sure SELinux has been disabled (CentOS system attention), and then temporarily stop the NET-SNMP.

Service snmpd stop

Then, add a read-only account (such as vpsaa.com), create a password (such as 123456), and transmit

Net-snmp-config-create-snmpv3-user-ro-A 123456-a MD5 vpsaa.com

Next, start NET-SNMP

Service snmpd start

Add NET-SNMP to startup item

Chkconfig snmpd on

Then we check the NET-SNMP

Snmpwalk-v 3-u vpsaa.com-a MD5-A "123456"-l authNoPriv 127.0.0.1 sysDescr

If everything is normal, you will see some output information.

Finally, because the server has enabled iptables, you need to add the monitoring IP address of SNMP in the rule:60.195.252.107 60.195.252.110

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

Now, after completing the above work, we will log on to our monitoring account (if not, please register it yourself at www.jiankongbao.com)

For example, select "monitoring"-"server performance monitoring" in the account, click "add server" on the right, fill in the required information, and finally add.

After that, you can click "add Monitoring Project" on the following page"

Finally, the server monitoring is added. Note that if you use the OpenVZ architecture to monitor VPS, the last disk IO will prompt "your server does not support this monitoring item, please add diskio module for the Snmp Agent". please cancel this option for OpenVZ users.

Well, the above process is a simple application that uses SNMP + monitoring Bao to monitor server performance. you can monitor your own server or VPS.

(Reproduced from Zhao Rong tribe)


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.