Configuring SNMP Agent Properties

When configuring the SNMP agent, you can define the SNMP agent properties to expose the SNMP metrics and send the proper notifications to the SNMP servers.

SNMP Agent Properties and Defaults shows the SNMP agent properties. The right column provides default values appropriate for many common deployments.

Table 1. SNMP Agent Properties and Defaults
Property Name Description Default Value
snmp-adapter.agent.host The host name to be used by the SNMP agent. 0.0.0.0
snmp-adapter.agent.port The port to be used by the SNMP agent. 5770
snmp-adapter.agent.community The community name used by the SNMP agent. public
snmp-adapter.agent.context The context name to be used by the SNMP agent. public
snmp-adapter.agent.securityName The security name to be used by the SNMP agent. cpublic
snmp-adapter.agent.threadPoolSize The size of the thread pool to use for SNMP4J. (SNMP4J is the open source SNMP API for Java.) 2
snmp-adapter.agent.threadPoolName The name of the thread pool used for SNMP4J. (This is used mainly for display purposes.) snmpRequests
snmp-adapter.agent.configBaseDirectory The directory in which SNMP4J will store its configuration file. By default, this is the MATRIXX logging directory. If this is not set, it uses the current directory.

For more information about the MATRIXX environment variables, see the discussion about container directories and environment variables in MATRIXX Installation and Upgrade.

${MTX_LOG_DIR:.}
snmp-adapter.agent.configFileName The file name to use for the SNMP4J configuration file, which is generated by the agent. snmp-adapter-agent.cfg
snmp-adapter.agent.bootCounterFileName The file name to use for the SNMP4J boot counter file, which is generated by the agent. snmp-adapter-agent.bc

The following shows a sample SNMP agent configuration in the YAML configuration file.

snmp-adapter:
  agent:
    host: 0.0.0.0
    port: 5770
    community: public
    context: public
    securityName: cpublic
    threadPoolSize: 2
    threadPoolName: snmpRequests
    configBaseDirectory: ${MTX_LOG_DIR:.}
    confFileName: snmp-adapter-agent.cfg
    bootCounterFileName: snmp-adapter-agent.bc