-
Notifications
You must be signed in to change notification settings - Fork 99
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
incorrect smartctl_devices count with hardware HBAs #236
Comments
Add exclude regex |
thanks, this would indeed work given the specifics of this one server. I am however working on mass deployments of smartctl_exporter in which manual configuration is not feasible. While our automation could provide an autoconfiguration layer, it'd effectively duplicate what the exporter is already doing. I think solving this at the lowest layer would be preferable. |
Solutions, at the lowest level, by magic, unfortunately, are impossible. The administrator will still have to choose which polling protocol ( P.S.: see #205 |
I quite disagree that deduplicating via a unique key and applying some heuristic to choose the polling protocol is magic, and I also don't appreciate the bitterness. But sure, if this suggestion is unwelcome I'll figure something out in a higher layer |
I have a server in which smartctl_exporter reports an incorrect number of devices:
iirc the exporter uses
smartctl --scan
in thereadSMARTctlDevices
function taking to collect the list of devices. Indeed smartctl returns some duplicates:The exporter should probably have some extra logic to deduplicate devices that can be accessed in multiple ways. This should be possible by using either the serial or the WWN as unique identifier, e.g.:
The text was updated successfully, but these errors were encountered: