SNMP, or Simple Network Management Protocol, is widely used to
communicate with and monitor network devices, servers, and more, all via
IP. In this case, we’ll be installing an SNMP agent on a CentOS 6.5
server, which will allow for collection of data from our server, and
make the information available to a remote SNMP manager.
1. Make sure package net-snmp net-snmp-libs net-snmp-utils net-snmp-perl net-snmp-python
# yum install net-snmp net-snmp-libs net-snmp-utils net-snmp-perl net-snmp-python
# rpm -q net-snmp net-snmp-libs net-snmp-utils net-snmp-perl net-snmp-python
2. Go to your product manufacturer and download the product's MIB & activation MIB/add MIB UCD-SNMP-MIB<cpu memory example>
3. Rename the mib to UCD-SNMP-MIB.txt
4. Copy the MIB inside /usr/share/snmp/mibs/
5. Edit /etc/snmp/snmp.conf
[root@centos7 ~]# cat /etc/snmp/snmpd.conf | grep systemview
view systemview included .1.3.6.1.2.1.1
view systemview included .1.3.6.1.2.1.25
view systemview included .1.3.6.1.2.1.2.2.1
view systemview included .1.3.6.1.4.1.2021.10.1.3
view systemview included .1.3.6.1.4.1.2021.11
view systemview included .1.3.6.1.4.1.2021.4
view systemview included .1.3.6.1.4.1.2021.9.1
view systemview included .1
# Finally, grant the group read-only access to the systemview view.
access notConfigGroup "" any noauth exact systemview none none
# Finally, grant the group read-only access to the systemview view.
[root@centos7 ~]#
6. enable snmp service
centos6
# /etc/init.d/snmpd start
# service snmpd start
centos7
systemctl start snmpd.service
7. check status snmp service
centos6
# /etc/init.d/snmpd status
# service snmpd status
centos7
systemctl status snmpd.service
8. enable Configure SNMP to start when the server boots:
centos6
# chkconfig snmpd on
centos7
systemctl enable snmpd.service
9. Run snmpwalk
# snmpwalk -v 2c -c public 127.0.0.1
ReplyDeletePretty great post. I simply stumbled upon your blog and wanted to mention that I have really loved surfing around your blog posts. Great set of tips from the master himself. Excellent ideas. Thanks for Awesome tips Keep it
prtg-network-monitor-crack
ashampoo-backup-pro-crack/
hard-disk-sentinel-pro-crack
wise-duplicate-finder-pro-crack
notepad-crack
system-mechanic-pr-crack/