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] wrong display disk's infos from windows #726

Open
SniperRus opened this issue Nov 26, 2024 · 3 comments
Open

[BUG] wrong display disk's infos from windows #726

SniperRus opened this issue Nov 26, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@SniperRus
Copy link

Describe the bug
using scrutiny-collector-metrics-windows-amd64.exe with api endpoint on linux-webserver. on a web page it doesn't show an capacity of disks and names of devices shows as /dev//dev/sda, with extra /dev/.
at the same time, collector, running on linux work correctly

Expected behavior
it should show capacity and device name without extra /dev

Screenshots
image
image

Log Files
time="2024-11-26T14:43:32+03:00" level=info msg="Verifying required tools" type=metrics
time="2024-11-26T14:43:32+03:00" level=info msg="Executing command: smartctl --scan --json" type=metrics
time="2024-11-26T14:43:32+03:00" level=info msg="Executing command: smartctl --info --json /dev/sda" type=metrics
time="2024-11-26T14:43:33+03:00" level=info msg="Using WWN Fallback" type=metrics
time="2024-11-26T14:43:33+03:00" level=info msg="Executing command: smartctl --info --json /dev/sdb" type=metrics
time="2024-11-26T14:43:33+03:00" level=info msg="Using WWN Fallback" type=metrics
time="2024-11-26T14:43:33+03:00" level=info msg="Executing command: smartctl --info --json /dev/sdc" type=metrics
time="2024-11-26T14:43:33+03:00" level=info msg="Using WWN Fallback" type=metrics
time="2024-11-26T14:43:33+03:00" level=info msg="Executing command: smartctl --info --json /dev/sdd" type=metrics
time="2024-11-26T14:43:33+03:00" level=info msg="Using WWN Fallback" type=metrics
time="2024-11-26T14:43:33+03:00" level=info msg="Executing command: smartctl --info --json /dev/sde" type=metrics
time="2024-11-26T14:43:33+03:00" level=info msg="Using WWN Fallback" type=metrics
time="2024-11-26T14:43:33+03:00" level=info msg="Sending detected devices to API, for filtering & validation" type=metrics
time="2024-11-26T14:43:34+03:00" level=info msg="Collecting smartctl results for /dev/sda\n" type=metrics
time="2024-11-26T14:43:34+03:00" level=info msg="Executing command: smartctl --xall --json /dev/sda" type=metrics
time="2024-11-26T14:43:34+03:00" level=error msg="smartctl returned an error code (4) while processing /dev/sda\n" type=metrics
time="2024-11-26T14:43:34+03:00" level=error msg="smartctl detected a checksum error" type=metrics
time="2024-11-26T14:43:34+03:00" level=info msg="Publishing smartctl results for wd-wmaza7165061\n" type=metrics
time="2024-11-26T14:43:34+03:00" level=info msg="Collecting smartctl results for /dev/sdb\n" type=metrics
time="2024-11-26T14:43:34+03:00" level=info msg="Executing command: smartctl --xall --json /dev/sdb" type=metrics
time="2024-11-26T14:43:35+03:00" level=error msg="smartctl returned an error code (4) while processing /dev/sdb\n" type=metrics
time="2024-11-26T14:43:35+03:00" level=error msg="smartctl detected a checksum error" type=metrics
time="2024-11-26T14:43:35+03:00" level=info msg="Publishing smartctl results for btyg850601u7480bgn\n" type=metrics
time="2024-11-26T14:43:35+03:00" level=info msg="Collecting smartctl results for /dev/sdc\n" type=metrics
time="2024-11-26T14:43:35+03:00" level=info msg="Executing command: smartctl --xall --json /dev/sdc" type=metrics
time="2024-11-26T14:43:35+03:00" level=error msg="smartctl returned an error code (4) while processing /dev/sdc\n" type=metrics
time="2024-11-26T14:43:35+03:00" level=error msg="smartctl detected a checksum error" type=metrics
time="2024-11-26T14:43:35+03:00" level=info msg="Publishing smartctl results for ocz-63q536gp04qt7uv0\n" type=metrics
time="2024-11-26T14:43:35+03:00" level=info msg="Collecting smartctl results for /dev/sdd\n" type=metrics
time="2024-11-26T14:43:35+03:00" level=info msg="Executing command: smartctl --xall --json /dev/sdd" type=metrics
time="2024-11-26T14:43:36+03:00" level=error msg="smartctl returned an error code (4) while processing /dev/sdd\n" type=metrics
time="2024-11-26T14:43:36+03:00" level=error msg="smartctl detected a checksum error" type=metrics
time="2024-11-26T14:43:36+03:00" level=info msg="Publishing smartctl results for wd-wcavy2148325\n" type=metrics
time="2024-11-26T14:43:36+03:00" level=info msg="Collecting smartctl results for /dev/sde\n" type=metrics
time="2024-11-26T14:43:36+03:00" level=info msg="Executing command: smartctl --xall --json /dev/sde" type=metrics
time="2024-11-26T14:43:36+03:00" level=error msg="smartctl returned an error code (4) while processing /dev/sde\n" type=metrics
time="2024-11-26T14:43:36+03:00" level=error msg="smartctl detected a checksum error" type=metrics
time="2024-11-26T14:43:36+03:00" level=info msg="Publishing smartctl results for wd-wcaza4886823\n" type=metrics
time="2024-11-26T14:43:37+03:00" level=info msg="Main: Completed" type=metrics

@SniperRus SniperRus added the bug Something isn't working label Nov 26, 2024
@AnalogJ
Copy link
Owner

AnalogJ commented Nov 26, 2024

error code 4 means that smartctl may not have completed successfully.

Have you looked at hte troubleshooting steps in https://github.com/AnalogJ/scrutiny/blob/master/docs/TROUBLESHOOTING_DEVICE_COLLECTOR.md

When you manually run smartctl within the container, does it execute successfully?

@SniperRus
Copy link
Author

there are error code messages in other systems as well. for example, proxmox + smartctl - it shows error 68, so. probably that not a big deal tho
expl
smartctl -x /dev/sdb
image

the main goal for my post is that webpage shows disks from win collector with extra /dev/
/dev//dev/sda
image

and i can't hover over that disks with temperature history
image

@xinmans
Copy link

xinmans commented Jan 11, 2025

the main goal for my post is that webpage shows disks from win collector with extra /dev/

same issue ,have you fix it?

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

No branches or pull requests

3 participants