Seagate / openSeaChest

Cross platform utilities useful for performing various operations on SATA, SAS, NVMe, and USB storage devices.
Other
436 stars 60 forks source link

Add option to ignore drives in standby #138

Open slaecker opened 3 months ago

slaecker commented 3 months ago

I want to regularly parse openSeaChest output and get it scraped by Prometheus via node-exporter. But I don't want to wake the device everytime the script is running openSeaChest. smartctl supports the -n standby option to skip any device which is currently in standby. Can you please implement such an option in openSeaChest?

vonericsen commented 3 months ago

@slaecker,

This is a good idea! We can work on implementing this.

Are you only looking to skip drives in standby? Or the other power modes as well like smartctl's -n option allows?

slaecker commented 3 months ago

I personally only care for standby but I guess if you are already on it, it makes sense to implement options to ignore other power states as well. This will make the whole thing more feature complete.