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: articles/azure-monitor/agents/data-collection-snmp-data.md
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
---
2
-
title: Send SNMP traps to Azure Monitor Logs using Azure Monitor Agent
3
-
description: Learn how to collect SNMP traps using Azure Monitor Agent.
2
+
title: Collect SNMP trap data with Azure Monitor Agent
3
+
description: Learn how to collect SNMP trap data using Azure Monitor Agent.
4
4
ms.topic: how-to
5
5
ms.date: 06/22/2022
6
6
ms.reviewer: shseth
7
7
8
8
---
9
9
10
-
# Send SNMP traps to Azure Monitor Logs using Azure Monitor Agent
10
+
# Collect SNMP trap data with Azure Monitor Agent
11
11
12
12
Simple Network Management Protocol (SNMP) is a widely-deployed management protocol for monitoring and configuring Linux devices and appliances.
13
13
@@ -37,6 +37,13 @@ To complete this tutorial, you need:
37
37
38
38
SNMP identifies monitored properties using Object Identifier (OID) values, which are defined and described in vendor-provided MIB files.
39
39
40
+
The device vendor typically provides MIB files. If you don't have the MIB files, you can find the files for many vendors on third-party websites.
41
+
42
+
Place all MIB files for each device that sends SNMP traps in `/usr/share/snmp/mibs`, the default directory for MIB files. This enables logging SNMP trap fields with meaningful names instead of OIDs.
43
+
44
+
> [!NOTE]
45
+
> Some vendors maintain a single MIB for all devices, while others have hundreds of MIB files. To load an MIB file correctly, snmptrapd must load all dependent MIBs. Be sure to check the snmptrapd log file after loading MIBs to ensure that there are no missing dependencies in parsing your MIB files.
46
+
40
47
- A Linux server with an SNMP trap receiver.
41
48
42
49
In this article, we use **snmptrapd**, an SNMP trap receiver from the [Net-SNMP](https://www.net-snmp.org/) agent, which most Linux distributions provide. However, there are many other SNMP trap receiver services you can use.
@@ -59,10 +66,6 @@ To set up the snmptrapd trap receiver on a CentOS 7, Red Hat Enterprise Linux 7,
1. Place all MIB files foreach device that sends SNMP trapsin`/usr/share/snmp/mibs`, the default directory for MIB files. This enables logging SNMP trap fields with meaningful names instead of OIDs.
63
-
64
-
> [!NOTE]
65
-
> Some vendors maintain a single MIB forall devices, while others have hundreds of MIB files. To load an MIB file correctly, snmptrapd must load all dependent MIBs. Be sure to check the snmptrapd log file after loading MIBs to ensure that there are no missing dependenciesin parsing your MIB files.
66
69
67
70
1. Authorize community strings (SNMP v1 and v2 authentication strings) and define the format for the traps written to the log file:
68
71
@@ -83,7 +86,7 @@ To set up the snmptrapd trap receiver on a CentOS 7, Red Hat Enterprise Linux 7,
83
86
84
87
> [!NOTE]
85
88
> snmptrapd logs both traps and daemon messages - for example, service stop and start - to the same log file. In the example above, we’ve defined the log format to start with the word “snmptrap” to make it easy to filter snmptraps from the log later on.
86
-
## Configure the trap receiver to send traps to syslog or text file
89
+
## Configure the trap receiver to send trap data to syslog or text file
87
90
88
91
There are two ways snmptrapd can send SNMP traps to Azure Monitor Agent:
0 commit comments