System Environment RHEL6 # yuminstallnet-snmpnet-snmp-utils-y # snmpwalk-v1-cpubliclocalhostIP-MIB: ipAdEntIfIndexCreateddirectory:/var/lib/net-snmp/mib_indexesTimeout
# Yum install net-snmp-utils-y
# Snmpwalk-v 1-c public localhost IP-MIB: ipAdEntIfIndex
Created directory:/var/lib/net-snmp/mib_indexes
Timeout: No Response from localhost
No data can be extracted. We need to modify/etc/snmp/snmpd. conf.
# Vim/etc/snmp/snmpd. conf [the following color # indicates the comment, not # indicates the valid line]
# Com2sec notConfigUser default public
Com2sec local localhost public
Com2sec mynetwork 192.168.0.0/24 public
# Group notConfigGroup v1 notConfigUser
# Group notConfigGroup v2c notConfigUser
Group MyRWGroup v1 local
Group MyRWGroup v2c local
Group MyRWGroup usm local
Group MyROGroup v1 mynetwork
Group MyROGroup v2c mynetwork
Group MyROGroup usm mynetwork
# View systemview embedded ded. 1.3.6.1.2.1.1
# View systemview embedded ded. 1.3.6.1.2.1.25.1.1
View all supported ded. 1 80
# Access notConfigGroup "" any noauth exact systemview none
Access MyROGroup "" any noauth exact all none
Access MyRWGroup "" any noauth exact all none
This part is actually something to describe.
Syslocation Unknown (edit/etc/snmp/snmpd. conf)
Syscontact Root (Configure/etc/snmp. local. conf)
Syslocation Linux6.
Syscontact Vivek G Gite
The above is the place to be modified!
#/Etc/init. d/snmpd restart
# Snmpwalk-v 1-c public localhost IP-MIB: ipAdEntIfIndex
IP-MIB: ipAdEntIfIndex.127.0.0.1 = INTEGER: 1
IP-MIB: ipAdEntIfIndex.192.168.0.55 = INTEGER: 2
Now we can extract the data.
# Chkconfig snmpd on
Now install mrtg, I am using mrtg-2.16.2-5.el6.x86_64
# Yum install-y mrtg
# Mkdir-p/var/www/html/mymrtg
# Producer maker -- global 'workdir:/var/www/html/mymrtg '-- output/etc/mrtg/mymrtg. cfg public @ localhost (this is the monitoring machine)
# Producer maker -- global 'workdir:/var/www/html/mymrtg '-- output/etc/mrtg/mymrtg1.cfg public@192.168.0.222 (here is to monitor a remote host, doing so, you need to install snmp on the remote host for configuration. Copy the configuration file of the local host !) The configuration file is as follows:
Com2sec local localhost public
Com2sec mynetwork 192.168.0.0/24 public
Group MyRWGroup v1 local
Group MyRWGroup v2c local
Group MyRWGroup usm local
Group MyROGroup v1 mynetwork
Group MyROGroup v2c mynetwork
Group MyROGroup usm mynetwork
View all supported ded. 1 80
Access MyROGroup "" any noauth exact all none
Access MyRWGroup "" any noauth exact all none
Com2sec local localhost public
Com2sec mynetwork 192.168.0.0/24 public
Syslocation Linux6.
Syscontact Vivek G Gite
DontLogTCPWrappersConnects yes
#/Etc/init. d/snmpd restart
# Snmpwalk-v 1-c public localhost IP-MIB: ipAdEntIfIndex
IP-MIB: ipAdEntIfIndex.127.0.0.1 = INTEGER: 1
IP-MIB: ipAdEntIfIndex.192.168.0.222 = INTEGER: 4
IP-MIB: ipAdEntIfIndex.192.168.122.1 = INTEGER: 5
# Chkconfig snmpd on
# Indexmaker -- output =/var/www/html/mymrtg/index.html/etc/mrtg/mymrtg. cfg Use of uninitialized value $ first in hash element at/usr/bin/indexmakers line 353.
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.