Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Net-snmp ====== **General Information** How to install the net-snmp service for monitoring. **Checklist** * Distro(s): Enterprise Linux ---- ===== Install and Configure net-snmp ===== * Install net snmp<code bash>yum install net-snmp-utils net-snmp</code> \\ * Create the SNMPv3 User<code bash>net-snmp-create-v3-user -ro -A <Authpw> -X <Encryptionpw> -a SHA -x AES <snmpv3username></code> * Example:<code bash>net-snmp-create-v3-user -ro -A MyAuthPW123 -X MyEncryptPW123 -a SHA -x AES systempoller</code> \\ * Comment out default user and group<code bash>sed -i 's/^com2sec notConfigUser/#com2sec notConfigUser/' /etc/snmp/snmpd.conf sed -i 's/^group notConfigGroup/#group notConfigGroup/' /etc/snmp/snmpd.conf</code> \\ * Start the snmpd service * EL7<code bash>systemctl start snmpd</code> * EL6<code bash>service snmpd start</code> \\ * Configure service to start at boot * EL7<code bash>systemctl enable snmpd</code> * EL6<code bash>chkconfig snmpd on</code> \\ * Test the user<code bash>snmpwalk -u <snmpv3username> -A <Authpassword> -a SHA -X <Encryptionpassword> -x AES -l authPriv -v3 127.0.0.1 | head</code> ---- ===== SNMP Config File ===== Location: /etc/snmp/snmpd.conf \\ Configure SNMP System Information <code bash> syslocation Datacenter, Row 3, Rack 2 syscontact UNIX Admin <admin@example.com> </code> ---- linux_wiki/net-snmp.txt Last modified: 2019/05/25 23:50(external edit)