Improved the code example in SNMP v3 documentation (#11959)
* Updated SNMP v3 documentation * Updated the example code to match @ilyam8's suggestion
Tina Luedtke committed
Jan 13, 2022 at 07:27 UTC
5cfaf0146fee88883ac064d5211212025403b222
1 file changed
+18
-5
collectors/node.d.plugin/snmp/README.md
+18
-5
@@ -183,37 +183,50 @@ The `options` given for each server, are:
183
184
To use SNMPv3:
185
186
-- set `version` to 3
186
- use `user` instead of `community`
187
+- set `version` to 3
188
189
User syntax:
190
191
```json
192
{
193
- "user": {
193
+ "enable_autodetect": false,
194
+ "update_every": 10,
195
+ "servers": [
196
+ {
197
+ "hostname": "10.11.12.8",
198
+ "user": {
199
"name": "userName",
200
"level": 3,
201
"authProtocol": "3",
202
"authKey": "authKey",
203
"privProtocol": "2",
204
"privKey": "privKey"
205
+ },
206
+ "update_every": 10,
207
+ "options": {
208
+ "version": 3
209
+ },
210
+ "charts": {
211
+ }
212
}
213
+ ]
214
}
215
```
216
204
-Security levels:
217
+Security levels (`level`):
218
219
- 1 is `noAuthNoPriv`
220
- 2 is `authNoPriv`
221
- 3 is `authPriv`
222
210
-Authentication protocols:
223
+Authentication protocols (`authProtocol`):
224
225
- "1" is `none`
226
- "2" is `md5`
227
- "3" is `sha`
228
216
-Privacy protocols:
229
+Privacy protocols (`privProtocol`):
230
231
- "1" is `none`
232
- "2" is `des`