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.
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/.
In order to build this extension, you'll need:
mvn clean install
and find the Snmp-Trap-Receiver-Extension-1.0.zip
file in the target
folder.<MACHINE_AGENT_HOME>/monitors
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.
Configure the extension by editing the config.yml
file in <MACHINE_AGENT_HOME>/monitors/SnmpTrapReceiver/
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"
Configure the machineAgentConnection
to the Machine Agent HTTP Listener.
For example,
# Machine Agent HTTP Listener
# All of the values shoule 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"
snmpConnection
information where applicable.# SNMP Trap Receiver Connection
# All of the values shoule 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"
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.
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 the
Metrics will now be seen under the following metric tree:
Application Infrastructure Performance|<COMPONENT_ID>|Custom Metrics|SNMP Trap Receiver
This repo contains some artifacts to ease setup for testing, and issuing test calls to confirm functionality. In order to use these artifacts, you'll need:
DEBUG
logging enabled.docker-compose.yml
to point to your AppD Controller of choice.Please visit this page to get detailed instructions on password encryption. The steps in this document will guide you through the whole process.
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
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.
If after going through the Troubleshooting Document you have not been able to get your extension working, please file a ticket and add the following information.
Please provide the following in order for us to assist you better.
<MachineAgent>/logs
.<MachineAgent>/conf/logging/log4j.xml
. Change the level value of the following <logger>
elements to debug
.
<logger name="com.singularity">
<logger name="com.appdynamics">
<MachineAgent>/logs/*
.<MachineAgent>/conf/*
directory here.<MachineAgent>/monitors/ExtensionFolderYouAreHavingIssuesWith
directory here.
For any support related questions, you can also contact help@appdynamics.com.Always feel free to fork and contribute any changes directly via GitHub.
Name | Version |
---|---|
Extension Version | 1.0.0 |
Controller Compatibility | 4.5.x or Later |
Last Update | 06/09/2020 |