Unable to start snmp_exporter #1299
Closed
kommuri-bharath
started this conversation in
General
Replies: 1 comment
-
The issue is because of multiple "module:" entries in snmp_tutti2.yml files. Removing the multiple entries fixed the issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team,
I am planning to setup snmp_exporter with version 0.24.1 and found that the "auth" entry should be removed from generator.yml file in order to generate the yml. files (where I was successful). But, at the same time I am not able to start snmp_exporter service without "auth" parameter in the config files.
$ /home/snmpexp/snmp_exporter/snmp_exporter-0.24.1/snmp_exporter --config.file=/home/snmpexp/snmp_exporter/snmp_exporter-0.24.1/generator/snmp_tutti2.yml --web.listen-address=:10753
ts=2024-11-21T15:31:41.022Z caller=main.go:194 level=info msg="Starting snmp_exporter" version="(version=0.24.1, branch=HEAD, revision=f8826bcfadf9d93df9516c660fdc1d503f4e0b95)" concurrency=1
ts=2024-11-21T15:31:41.022Z caller=main.go:195 level=info build_context="(go=go1.21.0, platform=linux/amd64, user=root@6206907e6947, date=20230901-07:37:50, tags=netgo)"
ts=2024-11-21T15:31:41.107Z caller=main.go:202 level=error msg="Error parsing config file" err="yaml: unmarshal errors:\n line 6080: field modules already set in type config.Config\n line 7727: field modules already set in type config.Config\n line 17781: field modules already set in type config.Config\n line 21834: field modules already set in type config.Config\n line 33725: field modules already set in type config.Config\n line 37962: field modules already set in type config.Config\n line 39407: field modules already set in type config.Config\n line 45044: field modules already set in type config.Config"
ts=2024-11-21T15:31:41.107Z caller=main.go:203 level=error msg="Possible old config file, see https://github.com/prometheus/snmp_exporter/blob/main/auth-split-migration.md"
$/home/snmpexp/snmp_exporter/snmp_exporter-0.24.1/snmp_exporter --config.file=/home/snmpexp/snmp_exporter/snmp_exporter-0.24.1/generator/snmp_tutti2.yml --web.listen-address=:10753 --config.file=/home/snmpexp/snmp_exporter/snmp_exporter-0.24.1/generator/snmp_tmplowner.yml
ts=2024-11-21T15:53:31.036Z caller=main.go:194 level=info msg="Starting snmp_exporter" version="(version=0.24.1, branch=HEAD, revision=f8826bcfadf9d93df9516c660fdc1d503f4e0b95)" concurrency=1
ts=2024-11-21T15:53:31.036Z caller=main.go:195 level=info build_context="(go=go1.21.0, platform=linux/amd64, user=root@6206907e6947, date=20230901-07:37:50, tags=netgo)"
ts=2024-11-21T15:53:31.121Z caller=main.go:202 level=error msg="Error parsing config file" err="yaml: unmarshal errors:\n line 6080: field modules already set in type config.Config\n line 7727: field modules already set in type config.Config\n line 17781: field modules already set in type config.Config\n line 21834: field modules already set in type config.Config\n line 33725: field modules already set in type config.Config\n line 37962: field modules already set in type config.Config\n line 39407: field modules already set in type config.Config\n line 45044: field modules already set in type config.Config"
ts=2024-11-21T15:53:31.121Z caller=main.go:203 level=error msg="Possible old config file, see https://github.com/prometheus/snmp_exporter/blob/main/auth-split-migration.md"
Could someone please help me on how to change the config in order to start the snmp exporter. I tried passing the auth's in snmp_tmplowner.yml file but failed.
Thanks in advance !!
Beta Was this translation helpful? Give feedback.
All reactions