@cryptotaxi247 / netdata-1 / commits / 9692d1bb1

chore(go.d/sd/snmp): comment out defaults in snmp.conf (#19755)

comment out snmp defaults

Ilya Mashchenko committed Mar 3, 2025 at 20:11 UTC 9692d1bb10f1c01de195975605ac012b9f426b0c
1 file changed +28 -28
src/go/plugin/go.d/config/go.d/sd/snmp.conf
+28 -28
@@ -1,8 +1,8 @@
1 -# ===================================================================
2 -# WARNING: SNMP DISCOVERY IS DISABLED BY DEFAULT
3 -# To enable, change "disabled: yes" to "disabled: no" below
4 -# AND configure proper credentials and networks
5 -# ===================================================================
1 +## ===================================================================
2 +## WARNING: SNMP DISCOVERY IS DISABLED BY DEFAULT
3 +## To enable, change "disabled: yes" to "disabled: no" below
4 +## AND configure proper credentials and networks
5 +## ===================================================================
6
7 disabled: yes
8
@@ -11,22 +11,22 @@ name: 'snmp'
11 discover:
12 - discoverer: snmp
13 snmp:
14 - # how often to scan the networks for devices (default: 30m)
15 - rescan_interval: "30m"
14 + ## how often to scan the networks for devices (default: 30m)
15 + #rescan_interval: "30m"
16
17 - # the maximum time to wait for SNMP device responses (default: 1s)
18 - timeout: "1s"
17 + ## the maximum time to wait for SNMP device responses (default: 1s)
18 + #timeout: "1s"
19
20 - # How long to trust cached discovery results before requiring a new probe (default: 12h)
21 - device_cache_ttl: "6h"
20 + ## How long to trust cached discovery results before requiring a new probe (default: 12h)
21 + #device_cache_ttl: "12h"
22
23 - # how many IPs to scan concurrently within each subnet (default: 32)
24 - parallel_scans_per_network: 32
23 + ## how many IPs to scan concurrently within each subnet (default: 32)
24 + #parallel_scans_per_network: 32
25
26 - # ==========================================================
27 - # IMPORTANT: YOU MUST CONFIGURE YOUR OWN CREDENTIALS BELOW
28 - # The example credentials will not work in most environments
29 - # ==========================================================
26 + ## ==========================================================
27 + ## IMPORTANT: YOU MUST CONFIGURE YOUR OWN CREDENTIALS BELOW
28 + ## The example credentials will not work in most environments
29 + ## ==========================================================
30 credentials:
31 - name: "public-v2c"
32 version: "2"
@@ -34,26 +34,26 @@ discover:
34
35 - name: "secure-v3"
36 version: "3"
37 - # one of: "noAuthNoPriv", "authNoPriv", or "authPriv"
37 + ## one of: "noAuthNoPriv", "authNoPriv", or "authPriv"
38 security_level: "authPriv"
39 username: "admin"
40 - # one of: "md5", "sha", "sha224", "sha256", "sha384", "sha512"
40 + ## one of: "md5", "sha", "sha224", "sha256", "sha384", "sha512"
41 auth_protocol: "sha"
42 auth_password: "secret123"
43 - # one of: "des", "aes", "aes192", "aes256", "aes192C", "aes256C"
43 + ## one of: "des", "aes", "aes192", "aes256", "aes192C", "aes256C"
44 priv_protocol: "aes"
45 priv_password: "encrypt123"
46
47 - # ========================================================
48 - # IMPORTANT: YOU MUST CONFIGURE YOUR OWN NETWORKS BELOW
49 - # By default, no networks will be scanned until configured
50 - # Maximum size is limited to 512 IPs per subnet (/23 CIDR)
51 - # ========================================================
47 + ## ========================================================
48 + ## IMPORTANT: YOU MUST CONFIGURE YOUR OWN NETWORKS BELOW
49 + ## By default, no networks will be scanned until configured
50 + ## Maximum size is limited to 512 IPs per subnet (/23 CIDR)
51 + ## ========================================================
52 networks:
53 - # Subnet is the IP range to scan, supporting various formats:
54 - # https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/iprange#supported-formats
53 + ## Subnet is the IP range to scan, supporting various formats:
54 + ## https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/iprange#supported-formats
55 - subnet: "192.168.1.0/24"
56 - # Credential is the name of a credential from the Credentials list
56 + ## Credential is the name of a credential from the Credentials list
57 credential: "public-v2c"
58
59 classify: