Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current sophos config makes snmp_exporter fail #1281

Open
deajan opened this issue Nov 5, 2024 · 4 comments
Open

Current sophos config makes snmp_exporter fail #1281

deajan opened this issue Nov 5, 2024 · 4 comments

Comments

@deajan
Copy link

deajan commented Nov 5, 2024

Using snmp_exporter v0.26, It seems that current make generate works, but I get the following when keeping the sophos part in generator.yml:

Nov 05 18:29:19 hyper01i.delonca.local snmp_exporter[27926]: ts=2024-11-05T17:29:19.694Z caller=main.go:220 level=error msg="Error parsing config file" err="yaml: unmarshal errors:\n  line 37403: field datetime_pattern not found in type config.Metric\n  line 37809: field datetime_pattern not found in type config.Metric\n  line 37825: field datetime_pattern not found in type config.Metric\n  line 37841: field datetime_pattern not found in type config.Metric\n  line 37857: field datetime_pattern not found in type config.Metric\n  line 37873: field datetime_pattern not found in type config.Metric\n  line 37889: field datetime_pattern not found in type config.Metric\n  line 37905: field datetime_pattern not found in type config.Metric\n  line 37921: field datetime_pattern not found in type config.Metric\n  line 37937: field datetime_pattern not found in type config.Metric"
Nov 05 18:29:19 hyper01i.delonca.local snmp_exporter[27926]: ts=2024-11-05T17:29:19.694Z caller=main.go:221 level=error msg="Possible old config file, see https://github.com/prometheus/snmp_exporter/blob/main/auth-split-migration.md"

Removing the sophos part from generator.yml makes it work again.
Looks related to #1264

@bastischubert
Copy link
Collaborator

We have not yet released a new version with the fix. Have you tried building with the HEAD release of generator?

@deajan
Copy link
Author

deajan commented Nov 6, 2024

Built with yesterday's git master.

@bastischubert
Copy link
Collaborator

i tried the same
->
git clone ...; cd snmp_exporter/generator; make generate; cp snmp.yml ..; cd ..; make; ./snmp_exporter

do you mind sharing your snmp.yml ?

@deajan
Copy link
Author

deajan commented Nov 12, 2024

snmp.zip

Here's the file that produces above error, generated from c2b6a57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants