Skip to content

Commit 1541958

Browse files
committed
Update data-collection-snmp-data.md
1 parent 6a66ff7 commit 1541958

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

articles/azure-monitor/agents/data-collection-snmp-data.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
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.
44
ms.topic: how-to
55
ms.date: 06/22/2022
66
ms.reviewer: shseth
77

88
---
99

10-
# Send SNMP traps to Azure Monitor Logs using Azure Monitor Agent
10+
# Collect SNMP trap data with Azure Monitor Agent
1111

1212
Simple Network Management Protocol (SNMP) is a widely-deployed management protocol for monitoring and configuring Linux devices and appliances.
1313

@@ -37,6 +37,13 @@ To complete this tutorial, you need:
3737

3838
SNMP identifies monitored properties using Object Identifier (OID) values, which are defined and described in vendor-provided MIB files.
3939

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+
4047
- A Linux server with an SNMP trap receiver.
4148

4249
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,
5966
#Allow UDP 162 through the firewall
6067
sudo firewall-cmd --zone=public --add-port=162/udp --permanent
6168
```
62-
1. 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.
63-
64-
> [!NOTE]
65-
> 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.
6669

6770
1. Authorize community strings (SNMP v1 and v2 authentication strings) and define the format for the traps written to the log file:
6871

@@ -83,7 +86,7 @@ To set up the snmptrapd trap receiver on a CentOS 7, Red Hat Enterprise Linux 7,
8386

8487
> [!NOTE]
8588
> 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
8790

8891
There are two ways snmptrapd can send SNMP traps to Azure Monitor Agent:
8992

0 commit comments

Comments
 (0)