SNMP Trap Receiver Extension

SNMP Trap Receiver Extension

Overview

This extension runs as a continuous task, managed by the AppDynamics Machine Agent. It is capable of receiving SNMP TRAP and INFORM PDUs for SNMP v1, v2c, and v3. The extension also generates metrics regarding incoming SNMP messages and outgoing events to the AppDynamics Controller to determine/monitor its pipeline health.

Prerequisites

In order to use this extension, you do need a Standalone JAVA Machine Agent or SIM Agent. For more details on downloading these products, please visit https://download.appdynamics.com/.

Installation

  1. Download the attached Snmp-Trap-Receiver-Extension-VERSION.zip
  2. Unzip and copy that directory to <MACHINE_AGENT_HOME>/monitors
  3. Configure the extension by referring to the below section
  4. Restart your Machine Agent

Please place the extension in the "monitors" directory of your Machine Agent installation directory. Do not place the extension in the "extensions" directory of your Machine Agent installation directory.

Configuration

config.yml

Configure the extension by editing the config.yml file in <MACHINE_AGENT_HOME>/monitors/SnmpTrapReceiver/

  1. If not using SIM, or if metrics and events should correlate to an Application Tier, configure the "tier" under which the metrics need to be reported. This can be done by changing the value of <COMPONENT_ID> in

    metricPrefix: "Server|Component:<COMPONENT_ID>|Custom Metrics|SNMP Trap Receiver"

  2. Configure the machineAgentConnection to the Machine Agent HTTP Listener.
    For example,

       # Machine Agent HTTP Listener
       # All of the values should be strings wrapped in double quotes - see defaults for examples
       # host should remain as localhost, or perhaps loopback "127.0.0.1"
       host: "localhost"
       # port default matches Machine Agent default of "8293". If using different port for
       # the machine agent, e.g., passing JVM arg -Dmetric.http.listener.port=8080, port
       # value should be set as "8080"
       port: "8293"
    
    1. Configure the snmpConnection information where applicable.
      For example,
      # SNMP Trap Receiver Connection
      # All of the values should be strings wrapped in double quotes - see defaults for examples
      snmpConnection:
        # snmpProtocol can be "tcp" or "udp"
        snmpProtocol: "udp"
        snmpIP: "0.0.0.0"
        # Port values less than 1024 require Machine Agent to run as root/sudo
        snmpPort: "16200"
        # The below configurations are for v3 only - if not using v3, leave as-is
        snmpUsername: "username"
        # Auth Protocol Options are "MD5" or "SHA"
        snmpAuthProtocol: "MD5"
        snmpAuthPassPhrase: "authpassphrase"
        # Privacy/Encryption Protocol Options are "AES128", "AES192", "AES256", "DES", or "3DES"
        snmpPrivacyProtocol: "AES128"
        snmpPrivacyPassPhrase: "privacypassphrase"
      
    2. When starting the machine agent, pass the HTTP Listener configurations

Please copy all the contents of the config.yml file and go to http://www.yamllint.com/ . On reaching the website, paste the contents and press the “Go” button on the bottom left.

Metrics

By default, the extension assumes SIM, and uses the following default configuration:

  # Use this format if using SIM (Server Visibility enabled) Machine Agent
  metricPrefix: "Custom Metrics|SNMP Trap Receiver"

Metrics will be reported under the following metric tree:

Application Infrastructure Performance|Root|Individual Nodes|<SIM_SERVER_NAME>|Custom Metrics|SNMP Trap Receiver

Alternatively, you can map metrics to a Tier within an application. If doing so, we strongly recommend using the tier specific metric prefix so that metrics are reported only to a specified tier. Please change the metric prefix in your config.yaml

  # Use this format if using plain Machine Agent
  # This will create it in specific Tier/Component. Make sure to replace <COMPONENT_ID> 
  # with the appropriate one from your environment.
  metricPrefix: "Server|Component:<COMPONENT_ID>|Custom Metrics|SNMP Trap Receiver"

To find thein your environment, please follow the instructions here

Metrics will now be seen under the following metric tree:

Application Infrastructure Performance|<COMPONENT_ID>|Custom Metrics|SNMP Trap Receiver

Credentials Encryption

Please visit this page to get detailed instructions on password encryption. The steps in this document will guide you through the whole process.

Extensions Workbench

Workbench is an inbuilt feature provided with each extension in order to assist you to fine tune the extension setup before you actually deploy it on the controller. Please review the following document on How to use the Extensions WorkBench

Troubleshooting

Please follow the steps listed in this troubleshooting-document in order to troubleshoot your issue. These are a set of common issues that customers might have faced during the installation of the extension. If these don't solve your issue, please follow the last step on the troubleshooting-document to contact the support team.

Contributing

Always feel free to fork and contribute any changes directly via GitHub.

Version

NameVersion
Extension Version1.0.0
Controller Compatibility4.5.x or Later
Last Update06/09/2020