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

[BUG] Invalid temp values in database #393

Closed
adripo opened this issue Nov 5, 2022 · 5 comments · Fixed by #394
Closed

[BUG] Invalid temp values in database #393

adripo opened this issue Nov 5, 2022 · 5 comments · Fixed by #394
Labels
bug Something isn't working

Comments

@adripo
Copy link
Contributor

adripo commented Nov 5, 2022

Describe the bug
The temp values showed for one of my HDD is wrong. They are below 25C and this is not possible.
I debugged a little and found that the data in influxdb has invalid temp values of 0C. That changes the calculated median and generates wrong calculated values.

Expected behavior
Correct temp values

Screenshots
image
image

@adripo adripo added the bug Something isn't working label Nov 5, 2022
@adripo
Copy link
Contributor Author

adripo commented Nov 5, 2022

<style> </style>
2 2022-11-04T16:32:35.518660698Z 2022-11-05T16:32:35.518660698Z 2022-11-05T05:31:30Z 30 temp temp
2 2022-11-04T16:32:35.518660698Z 2022-11-05T16:32:35.518660698Z 2022-11-05T05:32:30Z 0 temp temp
2 2022-11-04T16:32:35.518660698Z 2022-11-05T16:32:35.518660698Z 2022-11-05T05:33:30Z 29 temp temp
2 2022-11-04T16:32:35.518660698Z 2022-11-05T16:32:35.518660698Z 2022-11-05T05:34:30Z 29 temp temp
2 2022-11-04T16:32:35.518660698Z 2022-11-05T16:32:35.518660698Z 2022-11-05T05:35:30Z 29 temp temp
2 2022-11-04T16:32:35.518660698Z 2022-11-05T16:32:35.518660698Z 2022-11-05T05:36:30Z 29 temp temp
2 2022-11-04T16:32:35.518660698Z 2022-11-05T16:32:35.518660698Z 2022-11-05T05:37:30Z 0 temp temp
2 2022-11-04T16:32:35.518660698Z 2022-11-05T16:32:35.518660698Z 2022-11-05T05:38:30Z 29 temp temp
2 2022-11-04T16:32:35.518660698Z 2022-11-05T16:32:35.518660698Z 2022-11-05T05:39:30Z 29 temp temp
2 2022-11-04T16:32:35.518660698Z 2022-11-05T16:32:35.518660698Z 2022-11-05T05:40:30Z 29 temp temp

@adripo
Copy link
Contributor Author

adripo commented Nov 6, 2022

I extracted the smartctl values for the temp history:

The 0 in influx are null in smartctl

  "ata_sct_temperature_history": {
    "version": 2,
    "sampling_period_minutes": 1,
    "logging_interval_minutes": 1,
    "temperature": {
      "op_limit_min": 5,
      "op_limit_max": 55,
      "limit_min": 5,
      "limit_max": 55
    },
    "size": 478,
    "index": 415,
    "table": [
      30,
      30,
      30,
      null,
      30,
      31,
      31,
      31,
      null,
      31,
      31,
      31,
      31,
      null,
      30,
      31,
      31,
      31,
      null,
      31,
      31,
      31,
      31,
      31,
      31,
      31,
      null,
      31,
      31,
      32,
      32,
      32,
      33,
      33,
      33,
      33,
      null,
      31,
      31,
      31,
      32,
      32,
      null,
      31,
      32,
      32,
      null,
      32,
      32,
      32,
      32,
      null,
      31,
      31,
      31,
      31,
      null,
      30,
      30,
      30,
      30,
      null,
      30,
      30,
      30,
      30,
      null,
      30,
      30,
      30,
      30,
      null,
      30,
      30,
      30,
      30,
      null,
      30,
      30,
      30,
      30,
      null,
      29,
      30,
      30,
      30,
      null,
      28,
      29,
      29,
      29,
      null,
      29,
      29,
      29,
      29,
      null,
      30,
      30,
      30,
      30,
      null,
      30,
      30,
      30,
      30,
      null,
      29,
      29,
      29,
      30,
      30,
      30,
      30,
      30,
      30,
      30,
      30,
      30,
      30,
      30,
      30,
      null,
      30,
      30,
      30,
      30,
      30,
      null,
      30,
      30,
      30,
      30,
      30,
      30,
      30,
      30,
      null,
      28,
      29,
      29,
      null,
      29,
      29,
      30,
      30,
      null,
      29,
      30,
      30,
      30,
      null,
      28,
      29,
      29,
      29,
      null,
      29,
      29,
      30,
      30,
      30,
      30,
      30,
      30,
      30,
      30,
      null,
      30,
      30,
      30,
      30,
      null,
      30,
      30,
      30,
      30,
      null,
      30,
      30,
      30,
      30,
      null,
      30,
      30,
      30,
      30,
      null,
      30,
      30,
      30,
      30,
      null,
      30,
      30,
      30,
      30,
      null,
      29,
      29,
      30,
      30,
      null,
      29,
      29,
      29,
      30,
      null,
      29,
      29,
      29,
      29,
      null,
      29,
      29,
      29,
      30,
      30,
      30,
      null,
      30,
      30,
      30,
      30,
      null,
      29,
      29,
      29,
      29,
      null,
      29,
      29,
      29,
      30,
      null,
      29,
      29,
      29,
      29,
      null,
      28,
      29,
      29,
      29,
      null,
      28,
      28,
      28,
      28,
      null,
      28,
      28,
      28,
      28,
      null,
      28,
      29,
      29,
      29,
      30,
      30,
      30,
      30,
      30,
      30,
      30,
      30,
      30,
      null,
      29,
      29,
      29,
      30,
      30,
      30,
      30,
      30,
      30,
      30,
      30,
      30,
      30,
      30,
      30,
      30,
      31,
      31,
      31,
      31,
      null,
      31,
      31,
      31,
      31,
      31,
      31,
      31,
      32,
      32,
      32,
      32,
      32,
      32,
      32,
      32,
      32,
      32,
      32,
      32,
      32,
      32,
      32,
      32,
      32,
      32,
      32,
      32,
      32,
      32,
      32,
      32,
      32,
      32,
      32,
      33,
      33,
      33,
      33,
      33,
      33,
      33,
      33,
      33,
      33,
      33,
      34,
      34,
      34,
      34,
      34,
      34,
      34,
      34,
      34,
      34,
      34,
      34,
      34,
      34,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      34,
      34,
      34,
      34,
      35,
      34,
      34,
      34,
      34,
      34,
      34,
      34,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      34,
      34,
      35,
      34,
      34,
      34,
      35,
      35,
      34,
      35,
      35,
      35,
      35,
      34,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      35,
      34,
      34,
      34,
      34,
      34,
      35,
      35,
      35,
      35,
      34,
      35,
      34,
      34,
      35,
      34,
      34,
      34,
      34,
      34,
      34,
      34,
      35,
      35,
      35,
      35,
      35,
      35,
      34,
      34,
      34,
      34,
      34,
      34,
      null,
      28,
      28,
      29,
      29,
      null,
      28,
      29,
      29,
      29,
      null,
      28
    ]
  },

@AnalogJ
Copy link
Owner

AnalogJ commented Nov 6, 2022

Definitely a weird issue. Thanks for bringing it to my attention. I've added a PR to skip the invalid temperature readings.

@adripo
Copy link
Contributor Author

adripo commented Nov 7, 2022

@AnalogJ Thanks, I checked and it solves the issue. I suggested a little change in your PR.

@posta246
Copy link

Hi, my webmonitor says temp is "infinite", even if smartctl shows a value (previous version of scrutiny show the right one). How can give you more info? Another problem, maybe related: temp history is not recorded, the graph only includes values obtained when container stop and start...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants