@@ -104,65 +104,67 @@ def create_datadog_conf_file(tmp_dir):
104
104
# Setting check_runners to a negative number to disable check runners is a workaround,
105
105
# Datadog Agent might not guarantee this behaviour in the future.
106
106
'check_runners' : - 1 ,
107
- 'snmp_listener' : {
108
- 'workers' : 4 ,
109
- 'discovery_interval' : 10 ,
110
- 'configs' : [
111
- {
112
- 'network' : '{}.0/29' .format (prefix ),
113
- 'port' : PORT ,
114
- 'community' : 'generic-device' ,
115
- 'version' : 2 ,
116
- 'timeout' : 1 ,
117
- 'retries' : 2 ,
118
- 'tags' : [
119
- "tag1:val1" ,
120
- "tag2:val2" ,
121
- ],
122
- 'loader' : 'core' ,
123
- },
124
- {
125
- 'network' : '{}.0/28' .format (prefix ),
126
- 'port' : PORT ,
127
- 'community' : 'apc_ups' ,
128
- 'version' : 2 ,
129
- 'timeout' : 1 ,
130
- 'retries' : 2 ,
131
- 'loader' : 'python' ,
132
- },
133
- {
134
- 'network' : '{}.0/27' .format (prefix ),
135
- 'namespace' : 'test-auth-proto-sha' ,
136
- 'port' : PORT ,
137
- 'version' : 3 ,
138
- 'timeout' : 1 ,
139
- 'retries' : 2 ,
140
- 'user' : 'datadogSHADES' ,
141
- 'authentication_key' : 'doggiepass' ,
142
- 'authentication_protocol' : 'sha' ,
143
- 'privacy_key' : 'doggiePRIVkey' ,
144
- 'privacy_protocol' : 'des' ,
145
- 'context_name' : 'public' ,
146
- 'ignored_ip_addresses' : {'{}.2' .format (prefix ): True },
147
- 'loader' : 'core' ,
148
- },
149
- {
150
- 'network' : '{}.0/27' .format (prefix ),
151
- 'namespace' : 'test-auth-proto-sha256' ,
152
- 'port' : PORT ,
153
- 'version' : 3 ,
154
- 'timeout' : 1 ,
155
- 'retries' : 2 ,
156
- 'user' : 'datadogSHA256AES' ,
157
- 'authentication_key' : 'doggiepass' ,
158
- 'authentication_protocol' : 'SHA256' ,
159
- 'privacy_key' : 'doggiePRIVkey' ,
160
- 'privacy_protocol' : 'AES' ,
161
- 'context_name' : 'public' ,
162
- 'ignored_ip_addresses' : {'{}.2' .format (prefix ): True },
163
- 'loader' : 'core' ,
164
- },
165
- ],
107
+ 'network_devices' : {
108
+ 'autodiscovery' : {
109
+ 'workers' : 4 ,
110
+ 'discovery_interval' : 10 ,
111
+ 'configs' : [
112
+ {
113
+ 'network' : '{}.0/29' .format (prefix ),
114
+ 'port' : PORT ,
115
+ 'community' : 'generic-device' ,
116
+ 'version' : 2 ,
117
+ 'timeout' : 1 ,
118
+ 'retries' : 2 ,
119
+ 'tags' : [
120
+ "tag1:val1" ,
121
+ "tag2:val2" ,
122
+ ],
123
+ 'loader' : 'core' ,
124
+ },
125
+ {
126
+ 'network' : '{}.0/28' .format (prefix ),
127
+ 'port' : PORT ,
128
+ 'community' : 'apc_ups' ,
129
+ 'version' : 2 ,
130
+ 'timeout' : 1 ,
131
+ 'retries' : 2 ,
132
+ 'loader' : 'python' ,
133
+ },
134
+ {
135
+ 'network' : '{}.0/27' .format (prefix ),
136
+ 'namespace' : 'test-auth-proto-sha' ,
137
+ 'port' : PORT ,
138
+ 'version' : 3 ,
139
+ 'timeout' : 1 ,
140
+ 'retries' : 2 ,
141
+ 'user' : 'datadogSHADES' ,
142
+ 'authentication_key' : 'doggiepass' ,
143
+ 'authentication_protocol' : 'sha' ,
144
+ 'privacy_key' : 'doggiePRIVkey' ,
145
+ 'privacy_protocol' : 'des' ,
146
+ 'context_name' : 'public' ,
147
+ 'ignored_ip_addresses' : {'{}.2' .format (prefix ): True },
148
+ 'loader' : 'core' ,
149
+ },
150
+ {
151
+ 'network' : '{}.0/27' .format (prefix ),
152
+ 'namespace' : 'test-auth-proto-sha256' ,
153
+ 'port' : PORT ,
154
+ 'version' : 3 ,
155
+ 'timeout' : 1 ,
156
+ 'retries' : 2 ,
157
+ 'user' : 'datadogSHA256AES' ,
158
+ 'authentication_key' : 'doggiepass' ,
159
+ 'authentication_protocol' : 'SHA256' ,
160
+ 'privacy_key' : 'doggiePRIVkey' ,
161
+ 'privacy_protocol' : 'AES' ,
162
+ 'context_name' : 'public' ,
163
+ 'ignored_ip_addresses' : {'{}.2' .format (prefix ): True },
164
+ 'loader' : 'core' ,
165
+ },
166
+ ],
167
+ }
166
168
},
167
169
'listeners' : [{'name' : 'snmp' }],
168
170
}
0 commit comments