Commit Graph

7 Commits (9ad96e6d37a89d69a6e4802ab0d12fbde981aa3f)

Author SHA1 Message Date
Jason Kulatunga 21d07a0712 adding tests for Detect struct in collector. Adding ability to mock out exec.Command calls.
3 years ago
Jason Kulatunga b44ef5cb9c adding support for a collecto config file.
4 years ago
Jason Kulatunga 7742f4c6c3 fixing windows binary build during CI. Update config missing error message.
4 years ago
Jason Kulatunga e44864e64b fixes.
4 years ago
Jason Kulatunga 8a336bf5c6 wwn should always be lowercase for consistency. It's used in the URL for pushing smart data.
4 years ago
Jason Kulatunga 24262f7c8c pass deviceType when running smartctl data collection (for megaraid type disks).
4 years ago
Jason Kulatunga 23d5b86b1b new device detection engine (OS aware). Uses smartctl --scan to detect drives (and conditionally uses jaypipes/ghw). WWN is calculated from smartctl data, then retrieved from GHW, and fallsback to serial number. WWN calcuation code is based on IEEE spec, for "Registered" IEEE format - NAA5. TODO: support NAA6 and other formats?
4 years ago