Open wjbridge opened 3 months ago
have you created a collector config file?
https://github.com/AnalogJ/scrutiny/blob/master/example.collector.yaml#L42-L50
If smartctl
is returning an error, you need to provide a config file to override/configure the smartctl command for your disks
I have the same problem. I tracked it down to changes in the release 0.7.3 - with 0.7.2 it still works. As a workaround I will stay with that version.
Yes, I have created the config file. Here is my collector file. I can also confirm everything works correctly with v0.7.2
.
######################################################################
# Version
#
# version specifies the version of this configuration file schema, not
# the scrutiny binary. There is only 1 version available at the moment
version: 1
# The host id is a label used for identifying groups of disks running on the same host
# Primiarly used for hub/spoke deployments (can be left empty if using all-in-one image).
host:
id: ""
# This block allows you to override/customize the settings for devices detected by
# Scrutiny via `smartctl --scan`
# See the "--device=TYPE" section of https://linux.die.net/man/8/smartctl
# type can be a 'string' or a 'list'
devices:
# examples showing how to force smartctl to detect disks inside a raid array/virtual disk
- device: /dev/sda
type:
- aacraid,0,0,0
- aacraid,0,0,1
- aacraid,0,0,2
- aacraid,0,0,3
# example for forcing device type detection for a single disk
- device: /dev/nvme0n1
type: 'auto'
########################################################################################################################
# FEATURES COMING SOON
#
# The following commented out sections are a preview of additional configuration options that will be available soon.
#
########################################################################################################################
I am not sure how to override/configure the smartctl command for your disks
that replaces the --device sat
with --device aacraid,0,0,0
. I thought that was coming from the collector file.
Describe the bug Not able to pull metrics for aacraid raid anymore. Uses the command
smartctl --xall --json --device sat /dev/sda
instead ofsmartctl --xall --json --device aacraid,0,0,0 /dev/sda
.The command
smartctl --xall --json --device sat /dev/sda
returns in error and can reproduce this in the container (i.e. docker exec). If I usesmartctl --xall --json --device aacraid,0,0,0 /dev/sda1
, this works great.Expected behavior Pull metrics from aacraid raid.
Screenshots
Log Files Docker Config