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. Wgethttp: // downloads.sourceforge.net/project/net-snmp/net-snmp/5.4.4/net-snmp-5.4...
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
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