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] collector.yaml device path 会自动把大写字母转换为小写,type 参数不会添加到 metrics_info_args #693

Open
pdj9na opened this issue Sep 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@pdj9na
Copy link

pdj9na commented Sep 21, 2024

Describe the bug
A clear and concise description of what the bug is.
collector.yaml 配置文件中
devices:

  • device: 会自动把大写字母转换为小写
    type: 不会应用到 metrics_info_args 参数列表,比如 type: 'scsi' 应当执行
    smartctl --info --json --device scsi <path>
    而实际上执行
    smartctl --info --json <path>
    就是说不会添加 --device scsi
    Expected behavior
    A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
image
image
image
image

Log Files
If related to missing devices or SMART data, please run the collector in DEBUG mode, and attach the log file.
See /docs/TROUBLESHOOTING_DEVICE_COLLECTOR.md for other troubleshooting tips.

docker run -it --rm -p 8080:8080 \
-v `pwd`/config:/opt/scrutiny/config \
-v /run/udev:/run/udev:ro \
--cap-add SYS_RAWIO \
--device=/dev/sda \
--device=/dev/sdb \
-e DEBUG=true \
-e COLLECTOR_LOG_FILE=/opt/scrutiny/config/collector.log \
-e SCRUTINY_LOG_FILE=/opt/scrutiny/config/web.log \
--name scrutiny \
ghcr.io/analogj/scrutiny:master-omnibus

# in another terminal trigger the collector
docker exec scrutiny scrutiny-collector-metrics run

The log files will be available on your host in the config directory. Please attach them to this issue.

Please also provide the output of docker info

@pdj9na pdj9na added the bug Something isn't working label Sep 21, 2024
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

1 participant