You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/network_monitoring/devices/snmp_traps.md
+42-31Lines changed: 42 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,38 +17,48 @@ Datadog Agent v7.37+ supports listening for SNMP Traps, enabling you to set up [
17
17
18
18
## Configuration
19
19
20
-
To enable listening for SNMP Traps, add the following to `datadog.yaml`:
20
+
1. The SNMP Trap functionality sends data as logs to Datadog. To receive this data, ensure that log collection is enabled by adding the following configuration to your `datadog.yaml` file.
21
+
22
+
```yaml
23
+
logs_enabled: true # Traps are forwarded as logs and can be found in the Log Explorer with a `source:snmp-traps` query.
24
+
```
25
+
26
+
2. In addition to enabling log collection on your Agent, to enable listening for SNMP Traps, add the following to your `datadog.yaml` file:
27
+
28
+
```yaml
29
+
network_devices:
30
+
namespace: <NAMESPACE> # optional, defaults to "default".
31
+
snmp_traps:
32
+
enabled: true
33
+
port: 9162 # on which ports to listen for traps
34
+
community_strings: # which community strings to allow for v2 traps
**Note**: Multiple v3 users and passwords are supported as of Datadog Agent `7.51` or higher.
57
+
58
+
3. Search for `source:snmp_traps` in the [Log Explorer][5] to locate SNMP trap data:
59
+
60
+
{{< img src="network_device_monitoring/snmp/snmp_logs_2.png" alt="Log Explorer showing `source:snmp_traps` with an SNMP Trap log line selected, highlighting the Network Device tag" style="width:90%" >}}
21
61
22
-
```yaml
23
-
logs_enabled: true # Traps are forwarded as logs and can be found in the Log Explorer with a `source:snmp-traps` query.
24
-
network_devices:
25
-
namespace: <NAMESPACE> # optional, defaults to "default".
26
-
snmp_traps:
27
-
enabled: true
28
-
port: 9162# on which ports to listen for traps
29
-
community_strings: # which community strings to allow for v2 traps
0 commit comments