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

SMART plugin: measurement dropped when HDD under heavy use. #6240

Closed
marcv81 opened this issue Aug 12, 2019 · 0 comments
Closed

SMART plugin: measurement dropped when HDD under heavy use. #6240

marcv81 opened this issue Aug 12, 2019 · 0 comments
Labels
area/smart feature request Requests for new plugin and for new features to existing plugins
Milestone

Comments

@marcv81
Copy link
Contributor

marcv81 commented Aug 12, 2019

Relevant telegraf.conf:

[[inputs.smart]]
  use_sudo = true
  attributes = true

System info:

Ubuntu 18.04 LTS

$ uname -a
Linux desktop 4.15.0-55-generic #60-Ubuntu SMP Tue Jul 2 18:22:20 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Telegraf version: latest master.

Steps to reproduce:

  1. Enable the SMART input plugin.
  2. Collect metrics.
  3. Load the HDD: time sh -c "dd if=/dev/zero of=test bs=1M count=3k && sync" (should take around 30s on a modern HDD).

Expected behavior:

Telegraf captures SMART measurements for the supported block devices.

Actual behavior:

Telegraf does not capture any SMART measurements when the HDD is under load.

Additional info:

This is due to a hardcoded 5s timeout for smartctl. It is possible to verify that under those circumstances smartctl takes more than 5s even outside of Telegraf. Verified on 2 different computers with different HDDs.

@danielnelson danielnelson added this to the 1.12.0 milestone Aug 12, 2019
@danielnelson danielnelson added area/smart feature request Requests for new plugin and for new features to existing plugins labels Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/smart feature request Requests for new plugin and for new features to existing plugins
Projects
None yet
Development

No branches or pull requests

2 participants