Configuring SNMP Trap Destinations
When determining where SNMP notifications (traps) are sent, you can define one or more SNMP servers in the SNMP network management system (NMS) properties file, which is in the snmp-adapter.yaml file. This is only needed if you are pushing SNMP traps. For SNMP metrics, the NMS server must be configured with information about the MATRIXX SNMP Adapter. However, such configuration details are vendor-specific and are beyond the scope of this documentation.
SNMP NMS Properties and Defaults shows the SNMP NMS property definitions, URLs where the notifications will be sent, and default values.
Property Name | Description | Default Value |
---|---|---|
snmp-adapter.nms.default.host | The host name (or IP address) of the SNMP NMS. | N/A |
snmp-adapter.nms.default.notificationPort | The port where the NMS will receive SNMP notifications (traps). | 162 |
snmp-adapter.nms.default.timeout | The duration for which the connection to the SNMP NMS will wait before it times out. Postfix the value with an s to indicate seconds, m for minutes or ms for milliseconds. | 5s |
snmp-adapter.nms.default.retries | The number of times the sending will retry. | 2 |
The following shows a sample SNMP NMS in the YAML configuration file.
snmp-adapter:
nms:
default:
host: localhost
notificationPort: 162
timeout: 5s
retries: 1
The properties and YAML above define a single NMS called 'default'. You can define different entries by using different names. The name in the example above is used for display purposes and as a way to separate the configurations.
To configure the SNMP Prometheus Adapter to enable SNMP traps, you must add an IP address or hostname to your configuration, which should look similar to that shown above.
For more information about MIB system notifications, see the discussion about system notifications.