Come join our live training webinar every other Wednesday at 11am PST and hear LogicMonitor experts explain best practices and answer common questions. We understand these are uncertain times, and we are here to help!
Enabling the SNMP background services is an essential step for configuring your device for monitoring. The following sections provide examples of how to set up SNMPv3 on RedHat/CentOS and Debian/Ubuntu. Depending on your distribution, additional adjustments may be necessary.
Note: To ensure you have sufficient permissions, you should become root or use the sudo command for the following configuration steps.
yum install net-snmp
Optionally, you can install snmpwalk and other tools that can be useful for troubleshooting (these are not required for LogicMonitor to monitor the device):
yum install net-snmp-utils
2. Stop the snmpd service:
service snmpd stop
3. Create an SNMPv3 user:
net-snmp-create-v3-user -ro -A my_authpass -X my_privpass -a SHA -x AES myv3user
Note the following:
The full command usage is:
net-snmp-create-v3-user [-ro] [-A authpass] [-X privpass] [-a MD5|SHA] [-x DES|AES] [username]
This command will automatically add information to the /var/lib/net-snmp/snmpd.conf and /etc/snmp/snmpd.conf configuration files.
4. Start the daemon and set it to start on server boot.
For RedHat/CentOS 7.0, use the following commands:
systemctl restart snmpd.service systemctl enable snmpd.service
For older versions of RedHat/CentOS, use the following commands:
service snmpd start chkconfig snmpd on
apt-get install snmp snmpd libsnmp-dev
2. Stop the snmpd service so that we can add a user:
3. Run the following command to add an SNMPv3 user:
net-snmp-config --create-v3-user -ro -A authpass -X privpass -a SHA -x AES myv3user
This command will automatically add information to the /var/lib/snmp/snmpd.conf and /usr/share/snmp/snmpd.conf configuration files.
/var/lib/snmp/snmpd.conf
/usr/share/snmp/snmpd.conf
For more information about editing the SNMP configuration file and testing it, see Setup SNMPv3 on Debian.
4. Depending on your configuration, use one of the following sets of commands to restart snmpd and set it to start on server boot:
systemctl restart snmpd systemctl enable snmpd
Any devices that use SNMPv3 must have a specific set of properties configured (within the LogicMonitor interface) in order for LogicMonitor to successfully communicate with them.
2. Select the device from the Device tree and navigate to the Info tab.
Note: Optionally, you can set the properties from the device’s parent group or the root group (i.e., account) level, depending upon how broadly they apply to other devices. For more information on determining the hierarchical level at which to establish properties for a device, see Resource and Instance Properties.
3. Scroll through the list of custom properties to see if the properties already exist on the device:
4. From the Manage dialog that appears, scroll to the bottom Properties section to edit or add your SNMPv3 properties:
5. Click Save to save your changes and exit the Manage dialog.
Note: To verify that the correct credentials have been set, follow the instructions in Troubleshooting SNMP.
In This Article