Install and setup snmpd on RedHat Enterprise Linux

I wanted to access a RHEL machine from Cacti, so I needed to install and configure net-snmp on there first.

yum install net-snmp

After installing net-snmp the snmpd.conf needs to be configured:

vi /etc/snmp/snmpd.conf

Adding the following enables access from other machines on my local network:

view   systemonly  included   .
view   systemonly  included   .

rocommunity public

rocommunity  public default -V systemonly
rocommunity6 public default -V systemonly

Next I setup the snmpd service to start on boot:

systemctl enable snmpd.service
systemctl restart snmpd.service

cacti (1) rhel (1) snmpd (1)