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
The **snmp** input plugin allows you to collect metrics from devices by SNMP(Simple Network Management Protocal) request.
4
+
5
+
## Configuration Parameters
6
+
7
+
The plugin supports the following configuration parameters:
8
+
9
+
| Key | Description |
10
+
| :--- | :--- |
11
+
| Target\_Host | The target host IP to send the request. Default: `127.0.0.1`|
12
+
| Port | The port to send the request. Default: `161`|
13
+
| Timeout | The timeout of the request in seconds. Default: `5`|
14
+
| Version | The SNMP version to use for the request, currently support `1` and `2c`. Default: `2c`|
15
+
| Community | The SNMP community setting to use for the request. Default: `public`|
16
+
| Retries |The number of retries for the request. Default: `3`|
17
+
| Oid_Type | The type of SNMP request to send, current support `get` ([snmpget](https://net-snmp.sourceforge.io/wiki/index.php/TUT:snmpget)) and `walk` ([snmpwalk](https://net-snmp.sourceforge.io/wiki/index.php/TUT:snmpwalk)). Default: `get`|
18
+
| Oid | The SNMP OID (Object Identifier) setting to use for the request.Default: `1.3.6.1.2.1.1.3.0` (System up time) |
19
+
20
+
## Getting Started
21
+
22
+
You can run the plugin from the command line or through the configuration file:
23
+
24
+
### Command Line
25
+
26
+
```bash
27
+
$ fluent-bit -i snmp -o stdout
28
+
Fluent Bit v2.x.x
29
+
* Copyright (C) 2015-2022 The Fluent Bit Authors
30
+
* Fluent Bit is a CNCF sub-project under the umbrella of Fluentd
0 commit comments