Published on

SNMP Configuration on RHEL

Authors
  • Name
    Jackson Chen

Reference Reading

https://support.itrsgroup.com/hc/en-us/articles/360020056114-How-to-configure-a-Linux-server-for-SNMP-monitoring

https://docs.fedoraproject.org/en-US/Fedora/26/html/System_Administrators_Guide/sect-System_Monitoring_Tools-Net-SNMP-Configuring.html

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sect-system_monitoring_tools-net-snmp-configuring

https://www.systutorials.com/docs/linux/man/5-snmpd.examples/

https://support.itrsgroup.com/hc/en-us/articles/360020056114-How-to-configure-a-Linux-server-for-SNMP-monitoring

SNMP3

SNMP v3 allows you to choose any combination of hashed authentication (auth) or encrypted data privacy (priv). If you want just authentication, choose auth. If you want just privacy, choose priv. If you want authentication without privacy, choose authNoPriv. If you want both, choose authPriv.

When using any mechanism that requires hashed authentication, your query must contain the username along with the password and the hashing algorithm.

When using any mechanism that requires data privacy, your query must contain the shared secret and the encryption algorithm.

Configure SNMP v2

https://getlabsdone.com/5-easy-steps-to-configure-snmp-on-redhat-linux-or-centos/

Configure SNMP v3

  1. Install snmp package
dnf install net-snmp net-snmp-utils net-snmp-libs net-snmp-devel
  1. Manually add the user to config file, edit /var/lib/net-snmp/snmpd.conf
service snmpd stop  # stop snmp service before making changes
createUser <snmp-user> SHA AES      # add to the end of the file
  1. Add the following line to the end of /etc/snmpd/snmpd.conf
rwuser <snmp-user>
  1. Enable SNMP service at boot time
systemctl enable snmpd
  1. Start snmpd daemon for change to take effect
systemctl restart snmpd
  1. Test SNMP service locally

SNMP Monitoring Setup

https://support.itrsgroup.com/hc/en-us/articles/360020056114-How-to-configure-a-Linux-server-for-SNMP-monitoring