Skip to content

How to enable SNMP on CentOS?

Last updated on March 13, 2019

To enable SNMP on CentOS

yum install net-snmp-utils -y
yum install net-snmp -y
mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.org
vi /etc/snmp/snmpd.conf

Add this line to snmpd.conf file

rocommunity public

Save and Exit

/etc/init.d/snmpd start
chkconfig snmpd on

Check if service is running

/etc/init.d/snmpd status
Published inLinux