Install snmp in centos

Source: Internet
Author: User

I don't know why the net-snmp built-in in centos cannot catch a lot of information, and the CPU network traffic memory cannot catch it.

After a while, I decided to use the code to compile and pull it down.


Wget http://downloads.sourceforge.net/project/net-snmp/net-snmp/5.4.4/net-snmp-5.4.4.tar.gz? R = http % 3A % 2F % 2Fsourceforge.net % 2 Fprojects % 2Fnet-snmp % 2 Ffiles % 2Fnet-snmp % 2F5. 4.4% 2F & ts = 1316244916 & use_mirror = switch

. /Configure-sysconfdir =/etc/snmp-bindir =/usr/bin-sbindir =/usr/sbin-prefix =/usr-with-default-snmp-version = "2 ″ -disable-snmptrapd-subagent; make; make install

Note that make-j8 is not supported; otherwise, an error is reported.

The configuration file is in/etc/snmp/snmpd. conf. The content is as follows:

Agentaddresses udp: 161

View systemonly supported ded. 1.3.6.1.2.1.1
View systemonly supported ded. 1.3.6.1.2.1.25.1

Rocommunity public

# Rocommunity public 61.122.111.1 <-Restrict IP Access. If no restriction is required, remove the IP address.

Rouser authOnlyUser

SysLocation Sitting on the Dock of the Bay
SysContact Me <me@example.org>
SysServices 72

Disk/10000
Disk/var 5%
IncludeAllDisks 10%

Load 12 10 5 www.2cto.com

IquerySecName internalUser
Rouser internalUser
DefaultMonitors yes
Linkupdownconfigurications yes

From: subaozi

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.