Google Ads

Sunday, 15 December 2013 00:00

Install the SNMP service on Centos server

Rate this item
(0 votes)

Install the SNMP service on Centos

Install the SNMP service
#yum install net-snmp

then
#mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.org
#vim /etc/snmp/snmpd.conf
and insert
rocommunity public 192.168.x.x
then replace 192.168.x.x with the IP address of the server that you want to allow SNMP lookups from:
Start the service
#/etc/init.d/snmpd start
and configure to start automatically
#chkconfig snmpd on
Run the command in order to open firewall
#system-config-firewall-tui
i
n shell console
and open UDP port 161 to your SNMP lookup server.
Finally test it as follows:
#snmpwalk -v 2c -c public 192.168.x.x

 

Read 25166 times Last modified on Monday, 28 December 2015 12:13