-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
panic when using snmp in v1.21.3 #10593
Comments
Are you specifying the path where your mibs are stored after you download them? Try adding |
That did help me to track the problem down - The crash happens when the mibs path contains a broken symlink. (I run telegraf in docker, and some of the mibs are mounted from the host) The broken link is a user error, but the previous version of telegraf handled this gracefully instead of crashing |
There is a pr being worked on to check symlinks better and fail more gracefully. Please be patient as we work out all the kinks :) I'm glad you figured out your issue! |
Sorry I closed this a little fast without more info. Here is the pr that checks symlinks if you want to give it a go or keep an eye out on its progress! |
Relevant telegraf.conf
Logs from Telegraf
System info
telegraf v1.21.3, docker v20.10.3
Docker
Extra mibs are added using
apt-get install snmp-mibs-downloader
Dockerfile:
Steps to reproduce
Expected behavior
Telegraf should work just as it did in v1.20.3 - i.e. read the extra MIBS and collect the metrics
Actual behavior
Telegraf crash on start
Additional info
No response
The text was updated successfully, but these errors were encountered: