Experience in monitoring SNMP performance with monitoring Bao

Source: Internet
Author: User
Tags install perl



SNMP collects data on server performance, such as CPU usage, memory usage, CPU load, number of system processes, disk space usage, network traffic, disk I/O, and so on, while using the monitoring treasure to process these data can be visually displayed. The following describes how to configure
Installing SNMP
1, tohttp://www.net-snmp.org/Download the latest version of the SNMP installation package.
1. wgethttp://softlayer-dal.dl.sourceforge.net/project/net-snmp/net-snmp/5.7.2/net-snmp-5.7.2.tar.gz
2. Tar xzf net-snmp-5.7.2.tar.gz
3. CD net-snmp-5.7.2
4../configure–prefix=/usr/local/snmp–with-mib-modules=ucd-snmp/diskio–with-default-snmp-version=3–[email Protected]–with-sys-location=unknown–with-logfile=/var/log/snmpd.log–with-persistent-directory=/var/net-snmp
5. Make
6. Make Install
Can appear can ' t locate extutils/makemaker.pm error, CentOS installs with yum install Perl-extutils-makemaker.
2, set the security authentication method
We use the V3 authentication method here.
To create a snmpd.conf file:
1. vi/usr/local/snmp/share/snmp/snmpd.conf
Then add a read-only account, as follows:
1. Rouser Jiankongbao Auth
As you can see, in V3, "Rouser" is used to represent a read-only account type, and subsequent "Jiankongbao" is the specified user name, and the "auth" behind it indicates that authentication is required.
Next, we will add "Jiankongbao" This user, this is the special mechanism in V3, we open the following configuration file:
1. vi/var/net-snmp/snmpd.conf
This file will be called automatically when the SNMPD is started, and we need to add the instructions to create the user inside it, as follows:
1. CreateUser Jiankongbao MD5 MyPassword
This line of configuration means creating a user named "Jiankongbao" with a password of "mypassword" and encrypted transmission with MD5. Here are the reminders:
Password must be at least 8 bytes
This is the provision of the SNMP protocol, and if it is less than 8 bytes, communication will not be possible.
It is worth noting that once SNMPD is started, for security reasons, the above line configuration will be snmpd automatically deleted, of course, SNMPD will be in the form of ciphertext to record in other files, restart snmpd do not need to add these configurations again, unless you want to create a new user.
The user name, password and encryption in the above configuration will need to be added when the monitoring treasure is added to the server.
3. Start the SNMP agent program
After configuration, you can now start SNMPD, as follows:
1./usr/local/snmp/sbin/snmpd
If you want to close, you can kill the process directly, as follows:
1. Killall-9 snmpd
Add a server to the surveillance treasure
Now let's take a look at how to add server monitoring in the monitoring treasure, through the new navigation, you will easily enter the page to add the server, here is divided into two parts, the first is to fill in the server information, including the server name and IP address, as well as the operating system type.
These are very simple, the reason to choose the operating system type, because there are some differences between Linux and Windows, so their SNMP repository is somewhat different, we need to provide the corresponding monitoring project according to different systems.
650) this.width=650; "src=" http://img.blog.csdn.net/20150728144321807 "alt=" here write a picture describing "title=" "style=" border:none; "/ >
Next is the SNMP setting, mainly chooses the different SNMP protocol, as well as fills in the authentication information, has already had the detailed introduction in front, here you only need to fill in the front configuration information truthfully.
650) this.width=650; "src=" http://img.blog.csdn.net/20150728144337251 "alt=" here write a picture describing "title=" "style=" border:none; "/ >
650) this.width=650; "src=" http://img.blog.csdn.net/20150728144353303 "alt=" here write a picture describing "title=" "style=" border:none; "/ >
When you are finished, click the Submit button, and it will take some time for the monitor to use this information to try to connect to your SNMP monitoring agent, which is a very important step.
650) this.width=650; "src=" http://img.blog.csdn.net/20150728144254081 "alt=" here write a picture describing "title=" "style=" border:none; "/ >
Bad, if you fill in the information can not connect to the server's SNMP agent, monitoring Bao will prompt you, this time, please carefully check the previous introduction of those configuration, as well as firewall policy, perhaps you do not open udp161 port.
650) this.width=650; "src=" http://img.blog.csdn.net/20150728144428887 "alt=" here write a picture describing "title=" "style=" border:none; "/ >

Then click "Add Monitoring Project", you can select the monitoring project for this server, for Linux server, monitoring Bao currently provides the following monitoring items, you can check all, and then submit.
650) this.width=650; "src=" http://img.blog.csdn.net/20150728144504548 "alt=" here write a picture describing "title=" "style=" border:none; "/ >
Then wait for the data and charts, it is so simple, if you have any questions or need help, please email to [email protected] jiankongbao.com


Experience in monitoring SNMP performance with monitoring Bao

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.