-
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
Attributes flag does not have expected function #6619
Labels
Milestone
Comments
Thanks for the detailed report. I think you are right on what needs done, any chance you would be able to make your changes and open a pull request? |
Sure, I can do that |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Relevant telegraf.conf:
System info:
Telegraf version 1.12.4
CentOS 7
Smartctl 7.0
Steps to reproduce:
Expected behavior:
^The above line should be recorded with attributes set to false
^The above line should not record temperature with attributes set to false
Actual behavior:
The opposite. When attributes is false, non-nvme temperature is recorded from the attributes section, while nvme temperature is not. When attributes is true, all temperatures are recorded.
Additional info:
I believe the issue comes from misplacing the
if collectAttributes
line in the smart.go file. I also believe that smart_test.go should be amended to not only check that all required fields are present, but also that all fields that should be excluded are not present.The text was updated successfully, but these errors were encountered: