Monitoring

SNMP v3 Configuration

Enabling the SNMP background services is an essential step for configuring your device for monitoring. SNMP v3 tends to be a bit more complicated to set up than SNMP v1 & v2. The following steps can be used to set up SNMP v3 on your Linux device. Depending on your distribution, additional adjustments may be necessary.

To ensure that you have sufficient permission, you should become root or use the sudo command for the following configuration steps.

Note: As discussed in Defining Authentication Credentials, you'll need to set the SNMP v3 credentials you set for your user as device properties. To verify that the correct credentials have been set, follow the instructions in Troubleshooting SNMP.

RedHat/CentOS

  1. Install the RPM:
    yum install net-snmp
  2. You can optionally 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
  3. Stop the snmpd service if it isn't already stopped:

    service snmpd stop
  4. Create an SNMP v3 user:

    net-snmp-create-v3-user -ro -A my_authpass -X my_privpass -a SHA -x AES myv3user

    Note that:

    • 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
  5. Start the daemon, and set it to start on server boot. For RedHat/CentOS 7.0 you can use these systemctl commands:

    systemctl restart snmpd.service
    systemctl enable snmpd.service

    Otherwise, for older versions of RedHat/CentOS, you can use these commands:

    service snmpd start
    chkconfig snmpd on

Debian/Ubuntu

  1. Install the package:
    apt-get install snmpd
  2. Stop the snmpd service if it isn't already stopped:

    service snmpd stop
  3. Create an SNMP v3 user:

    net-snmp-config --create-v3-user -ro -A my_authpass -X my_privpass -a SHA -x AES myv3user

    Note that:

    • the full command usage is:
      net-snmp-config --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/snmp/snmpd.conf and /usr/share/snmp/snmpd.conf configuration files
  4. Start the daemon, and set it to start on server boot:

    service snmpd start
    chkconfig snmpd on