Install SNMP
- Install the SNMPD service by running the following command:
- yum install net-snmp net-snmp-utils
- Once the service is installed, verify that it is set to start at startup by running:
Configure SNMP
- Make a backup of the original configuration file by running:
- mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.orig
- Create a new SNMP configuration file by running:
- touch /etc/snmp/snmpd.conf
- Once you have the new configuration file, generate a random string for the SNMP community string using a tool such as passwordsgenerator.net
- Once you have the string, edit /etc/snmp/snmpd.conf and add the following line, replacing [RANDOM_STRING] with the generated string:
- rocommunity [RANDOM_STRING]
- Save the configuration file, and finally start the SNMP service by running:
Article ID: 2390, Created: July 6, 2016 at 9:46 AM, Modified: February 10, 2017 at 9:33 AM