Linux snmp+ monitoring treasure to achieve simple server performance monitoring

Source: Internet
Author: User
Tags md5 snmp iptables
Monitoring treasure recommended use of NET-SNMP, so this article also take this as an example.

First, we install NET-SNMP.

The code is as follows Copy Code

Yum Install Net-snmp net-snmp-devel net-snmp-utils

Next we start to configure NET-SNMP.

Before configuring, we need to confirm that SELinux is turned off (CentOS system attention), and then temporarily stop NET-SNMP

The code is as follows Copy Code

Service SNMPD Stop

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

? View Code LANGUAGE






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

Next, start NET-SNMP

The code is as follows Copy Code

Service SNMPD Start

Add NET-SNMP to the startup item

The code is as follows Copy Code

Chkconfig snmpd on

Then we check the NET-SNMP

? View Code LANGUAGE






1
Snmpwalk-v 3-u vpsaa.com-a md5-a "123456"-l authnopriv 127.0.0.1 SYSDESCR

If everything works, you'll see some information about the output.

Finally, because Zhao Jong here the server opened the iptables, so you need to add the monitoring IP address in the rule: 60.195.252.107 60.195.252.110

The code is as follows Copy Code

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

OK, finish the above work, we login our monitor treasure account (if not, please register, address: www.jiankongbao.com)

As shown above, select "Monitor" in the account-"server performance Monitoring", then click on the right "add Server", fill in the following figure the necessary information, and finally Add.

When you are done, you can click on the "Add Monitoring item" on the next page.

Finally, complete the server monitoring add, here should be noted that if you use to monitor the VPs, based on the OpenVZ architecture, the last disk IO will prompt "Your server does not support the monitoring project, please add Diskio module for the SNMP agent", OpenVZ users please cancel this item.

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.