"use strict";(self.webpackChunkinfluxdb_ui=self.webpackChunkinfluxdb_ui||[]).push([[306],{61140:n=>{n.exports=' ## DEPRECATED: The \'snmp_legacy\' plugin is deprecated in version 1.0.0, use \'inputs.snmp\' instead.\n[[inputs.snmp_legacy]]\n  ## Use \'oids.txt\' file to translate oids to names\n  ## To generate \'oids.txt\' you need to run:\n  ##   snmptranslate -m all -Tz -On | sed -e \'s/"//g\' > /tmp/oids.txt\n  ## Or if you have an other MIB folder with custom MIBs\n  ##   snmptranslate -M /mycustommibfolder -Tz -On -m all | sed -e \'s/"//g\' > oids.txt\n  snmptranslate_file = "/tmp/oids.txt"\n  [[inputs.snmp.host]]\n    address = "192.168.2.2:161"\n    # SNMP community\n    community = "public" # default public\n    # SNMP version (1, 2 or 3)\n    # Version 3 not supported yet\n    version = 2 # default 2\n    # SNMP response timeout\n    timeout = 2.0 # default 2.0\n    # SNMP request retries\n    retries = 2 # default 2\n    # Which get/bulk do you want to collect for this host\n    collect = ["mybulk", "sysservices", "sysdescr"]\n    # Simple list of OIDs to get, in addition to "collect"\n    get_oids = []\n  [[inputs.snmp.host]]\n    address = "192.168.2.3:161"\n    community = "public"\n    version = 2\n    timeout = 2.0\n    retries = 2\n    collect = ["mybulk"]\n    get_oids = [\n        "ifNumber",\n        ".1.3.6.1.2.1.1.3.0",\n    ]\n  [[inputs.snmp.get]]\n    name = "ifnumber"\n    oid = "ifNumber"\n  [[inputs.snmp.get]]\n    name = "interface_speed"\n    oid = "ifSpeed"\n    instance = "0"\n  [[inputs.snmp.get]]\n    name = "sysuptime"\n    oid = ".1.3.6.1.2.1.1.3.0"\n    unit = "second"\n  [[inputs.snmp.bulk]]\n    name = "mybulk"\n    max_repetition = 127\n    oid = ".1.3.6.1.2.1.1"\n  [[inputs.snmp.bulk]]\n    name = "ifoutoctets"\n    max_repetition = 127\n    oid = "ifOutOctets"\n  [[inputs.snmp.host]]\n    address = "192.168.2.13:161"\n    #address = "127.0.0.1:161"\n    community = "public"\n    version = 2\n    timeout = 2.0\n    retries = 2\n    #collect = ["mybulk", "sysservices", "sysdescr", "systype"]\n    collect = ["sysuptime" ]\n    [[inputs.snmp.host.table]]\n      name = "iftable3"\n      include_instances = ["enp5s0", "eth1"]\n  # SNMP TABLEs\n  # table without mapping neither subtables\n  [[inputs.snmp.table]]\n    name = "iftable1"\n    oid = ".1.3.6.1.2.1.31.1.1.1"\n  # table without mapping but with subtables\n  [[inputs.snmp.table]]\n    name = "iftable2"\n    oid = ".1.3.6.1.2.1.31.1.1.1"\n    sub_tables = [".1.3.6.1.2.1.2.2.1.13"]\n  # table with mapping but without subtables\n  [[inputs.snmp.table]]\n    name = "iftable3"\n    oid = ".1.3.6.1.2.1.31.1.1.1"\n    # if empty. get all instances\n    mapping_table = ".1.3.6.1.2.1.31.1.1.1.1"\n    # if empty, get all subtables\n  # table with both mapping and subtables\n  [[inputs.snmp.table]]\n    name = "iftable4"\n    oid = ".1.3.6.1.2.1.31.1.1.1"\n    # if empty get all instances\n    mapping_table = ".1.3.6.1.2.1.31.1.1.1.1"\n    # if empty get all subtables\n    # sub_tables could be not "real subtables"\n    sub_tables=[".1.3.6.1.2.1.2.2.1.13", "bytes_recv", "bytes_send"]\n'}}]);