Monitor and manage SNMP installation in Ubuntu

Source: Internet
Author: User
Tags snmpwalk
Recently, remote server monitoring has been set up. The CactiEZV10.1 platform is used to remotely monitor system information, servers, applications, and databases on servers, therefore, you need to install the snmp protocol package on the remote server, obtain system information through snmp itself, and then transmit it to the monitoring platform for data collection and analysis for remote management. Because Ubuntu is used, various software packages are installed online, as follows: & gt; apt-getsnmp & gt; apt-gets

Recently, remote server monitoring has been set up. The CactiEZ V10.1 platform is used to remotely monitor system information, servers, applications, and databases on servers, therefore, you need to install the snmp protocol package on the remote server, obtain system information through snmp itself, and then transmit it to the monitoring platform for data collection and analysis for remote management.

Because Ubuntu is used, various software packages are installed online, as follows:

> Apt-get snmp

> Apt-get snmpd

After installing OK, modify/etc/snmp/snmpd. conf, I have tried it many times, because it is applicable to snmpd. conf configuration information is not understood, so after the installation, overwrite the following information to snmpd. in the conf file, you can restart the snmpd service.

Make sure that the snmpd. conf file contains the following green content:
Com2sec notConfigUser default public
Group notConfigGroup v1 notConfigUser
Group notConfigGroup v2c notConfigUser
View systemview supported ded. 1
Access notConfigGroup "" any noauth exact systemview none
Syslocation www.cactiez.com
Syscontact Root admin@163.com
Pass. 1.3.6.1.4.1.4413.4.1/usr/bin/ucd5820stat

Overwrite snmpd. after conf, run the snmpwalk-v 2c-c public localhost command or snmpwalk-v 2c-c public local IP address command. If both methods can obtain data, it indicates that, the snmp server is successfully configured.

Alternatively, you can use other commands to install the OK snmp server.

Snmpwalk-v 2c-c public destination IP address

If you can obtain the information, it indicates that you can access the data remotely. If you can only access the data locally but not remotely, check the firewall or disconnect the data by using the following command:

> Netstat-nlup | grep ": 161"

After snmp is installed, it is used as the system server by default. Therefore, you can run the following command to start and stop snmp:

> Service snmpd start

> Service snmpd stop

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.