Replies: 2 comments
-
You don't include your snmp.yml, so it's impossible to tell you what's wrong. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I tried these two plus other variations as well |
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
Uh oh!
There was an error while loading. Please reload this page.
-
The core issue is a persistent and contradictory error preventing the snmp_exporter Docker container from starting, despite all configuration and execution steps aligning with official documentation and best practices.
Specifically:
Error Message: The snmp_exporter continuously fails with the error message: yaml: unmarshal errors: line X: field auth not found in type config.plain. The line number varies depending on the snmp.yml format used.
Configuration Contradiction:
When using snmp_exporter:v0.28.0 with its new configuration format (top-level auths section), the exporter reports this error and suggests a "version mismatch" with a link to the auth-split-migration.md guide. This is contradictory, as v0.28.0 is precisely the version that requires this new format.
When reverting to snmp_exporter:v0.27.0 and its corresponding old configuration format (nested auth directly under modules), the exact same field auth not found in type config.plain error persists, which is also contradictory to v0.27.0's expected behavior.
Debugging Efforts Exhausted:
Multiple snmp_exporter image versions (v0.28.0, v0.27.0) have been tested.
Both the new and old snmp.yml configuration formats have been applied and verified to match the respective exporter versions.
Docker caches have been cleared thoroughly.
Interactive debugging inside the container confirmed that the snmp.yml file is correctly mounted and its content is as expected by the cat command.
Manual execution of the snmp_exporter binary directly within the container (after locating its correct path at /bin/snmp_exporter) produced the identical yaml: unmarshal errors message, ruling out Docker Compose or entrypoint issues.
Logs from the container itself
Tried 2 and 2c both on 0.27.0 and 0.28.0
Beta Was this translation helpful? Give feedback.
All reactions