-
-
Notifications
You must be signed in to change notification settings - Fork 170
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
[FEAT] Allow option to pass device type so devices not found in scan can be included #45
Comments
This is a great idea! I actually went down the route of filtering out removable disks, since I wanted to ignore thumbdrives, but I should have thought about external hard drives connected over USB. Let me think about this a bit. Eventually I plan on adding support for multi-host collector device grouping (and filtering) so I want to make sure that any |
It is not just removable disks. Some array controllers need parameters. so
optional driver flags will need to be passed especially if it is to be run in server environments (and lets face it multiple disk scenarios means servers) Otherwise it is a great little tool and I have already installed it on non controller card servers. Cheers! |
Scrutiny uses |
S'ok. I understand. Thanks for a great project and look forward to seeing improvements when they land. No worries. Cheers. EDIT: FWIW I think I can see where the confusion comes in. 2 sets of devices are listed.
|
Definitely looks like lots of inconsistencies/special cases - I have an H240 card in HBA mode, and it appears that the only way For this case it'd be useful to specify devices and/or drivers in the config file (similar to how you've proposed)...
|
I'm in a similar boat here - I have a 3ware 9650 RAID card, and it requires the following form to identify the device to smartctl:
|
Hey, # Commented Scrutiny Configuration File
#
# The default location for this file is /scrutiny/config/collector.yaml.
# In some cases to improve clarity default values are specified,
# uncommented. Other example values are commented out.
#
# When this file is parsed by Scrutiny, all configuration file keys are
# lowercased automatically. As such, Configuration keys are case-insensitive,
# and should be lowercase in this file to be consistent with usage.
######################################################################
# 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
# 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:
# example for forcing device type detection for a single disk
- device: /dev/sda
type: 'sat'
# example to show how to ignore a specific disk/device.
- device: /dev/sda
ignore: true
# examples showing how to force smartctl to detect disks inside a raid array/virtual disk
- device: /dev/bus/0
type:
- megaraid,14
- megaraid,15
- megaraid,18
- megaraid,19
- megaraid,20
- megaraid,21
- device: /dev/twa0
type:
- 3ware,0
- 3ware,1
- 3ware,2
- 3ware,3
- 3ware,4
- 3ware,5
Feedback is welcome & appreciated :) |
If the devices are being explicitly specified, I think they should be under their own key, to be used instead of or in addition to devices:
- device: /dev/sda
type: 'scsi'
- device: /dev/sdb
type: 'scsi'
- device: /dev/sdc
type: 'sat'
- device: /dev/sdd
type: 'sat' I have more testing to verify this makes sense across different versions of |
that's a good point. I'll change the keyname. |
Hey everyone, I just released a beta version of the Scrutiny docker image with support for overriding the collector device detection. The instructions for how to create the collector config file, and the new docker image tag are available in the PR description: All feedback (success & failure) is appreciated :) |
I tested it out with my original use case, and the external drive lit up right away: The configuration file was dead simple to use. In the PR, I also appreciated how you set up the example.collector.yaml file with clear instructions that covered all of the use cases discussed here. Thank you very much!! |
Hello. My config is: and i am getting error: failed to deploy a stack: services.scrutiny.devices.0 must be a string |
Had the same Problem. The Device overwrite config ist not in the docker-compose.yaml instead the device config musst be in the config folder in the file collector.yaml |
Does so the
|
First, I'd like to say that Scrutiny is such a great idea. Thank for you for creating this!!
Feature Request
It would be awesome if there was a way to pass the device type to Scrutiny so that it can collect details on drives that the smartctl utility can't identify on it's own (due to USB bridge identification limits, etc).
Context
I deployed this in Docker to a little home server I run, and mapped in 3 devices in the config file as such:
When I opened the Scrutiny UI after doing a scan, only the first two internal drives were visible. The last (/dev/sdc) is an external USB drive. I poked around and saw that it can be problematic for smartctl to get the details for external drives. However, if I could find and pass the correct device type for the USB bridge, it might work.
I was able to identify the correct value to pass for my particular drive, which allowed the retrieval of SMART data from my external drive from terminal. If I could provide configuration detail that the device is of type sat, hopefully I'll be able to monitor that external drive as well with Scrutiny. Below are the outputs of various commands I ran as I tested my theory.
sudo smartctl --scan
sudo smartctl -i /dev/sdc
sudo smartctl -i /dev/sdc -d sat
The text was updated successfully, but these errors were encountered: