From 5cfaf0146fee88883ac064d5211212025403b222 Mon Sep 17 00:00:00 2001 From: Tina Luedtke Date: Thu, 13 Jan 2022 07:27:24 -0800 Subject: Improved the code example in SNMP v3 documentation (#11959) * Updated SNMP v3 documentation * Updated the example code to match @ilyam8's suggestion --- collectors/node.d.plugin/snmp/README.md | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/collectors/node.d.plugin/snmp/README.md b/collectors/node.d.plugin/snmp/README.md index 93ade5e648..df6d7eacab 100644 --- a/collectors/node.d.plugin/snmp/README.md +++ b/collectors/node.d.plugin/snmp/README.md @@ -183,37 +183,50 @@ The `options` given for each server, are: To use SNMPv3: -- set `version` to 3 - use `user` instead of `community` +- set `version` to 3 User syntax: ```json { - "user": { + "enable_autodetect": false, + "update_every": 10, + "servers": [ + { + "hostname": "10.11.12.8", + "user": { "name": "userName", "level": 3, "authProtocol": "3", "authKey": "authKey", "privProtocol": "2", "privKey": "privKey" + }, + "update_every": 10, + "options": { + "version": 3 + }, + "charts": { + } } + ] } ``` -Security levels: +Security levels (`level`): - 1 is `noAuthNoPriv` - 2 is `authNoPriv` - 3 is `authPriv` -Authentication protocols: +Authentication protocols (`authProtocol`): - "1" is `none` - "2" is `md5` - "3" is `sha` -Privacy protocols: +Privacy protocols (`privProtocol`): - "1" is `none` - "2" is `des` -- cgit v1.2.3