Skip to content
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

Add S.M.A.R.T values as separate metric #17

Open
vilhelmprytz opened this issue Aug 1, 2024 · 1 comment
Open

Add S.M.A.R.T values as separate metric #17

vilhelmprytz opened this issue Aug 1, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@vilhelmprytz
Copy link
Owner

The exporter should scrape the S.M.A.R.T values for each drive, using areca.cli64 disk smart drv=N and parse this output as metrics with each parameter as a label.

Example output:

# areca.cli64 disk smart drv=1
S.M.A.R.T Information For Drive[#01]
===============================================================
Model Name                         : CENSORED
Serial Number                      : CENSORED
Firmware Rev.                      : C40H
Disk Capacity                      : 4000.8GB
Rotation Speed                     : 7200(RPM)
Device Temperature                 : 31 C
Read Errors Receovered W/O Delay   : 0x0000000000000000
Read Errors Receovered W Delay     : 0x0000000000000006
Read Errors Receovered W Retry     : 0x0000000000000000
Read Errors Receovered             : 0x0000000000000006
Read Total Bytes                   : 0x000048C7B7DE6A00
Read Errors Unrecovered            : 0x0000000000000000
Write Errors Receovered W/O Delay  : 0x0000000000000000
Write Errors Receovered W Delay    : 0x0000000000000000
Write Errors Receovered W Retry    : 0x0000000000000000
Write Errors Receovered            : 0x0000000000000000
Write Total Bytes                  : 0x00011B30B326B800
Write Errors Unrecovered           : 0x0000000000000000
Verify Errors Receovered W/O Delay : 0x0000000000000000
Verify Errors Receovered W Delay   : 0x0000000000000000
Verify Errors Receovered W Retry   : 0x0000000000000000
Verify Errors Receovered           : 0x0000000000000000
Verify Errors Unrecovered          : 0x0000000000000000
Non-Medium Errors                  : 0x0000000000000000
Defect PList Block Count           : 0x00000000000345F6
Defect GList Block Count           : 0x0000000000000000
Power On Hours(POH)                : 44464.78
Device Smart Status                : O.K.
===============================================================
GuiErrMsg<0x00>: Success.

It should also convert the values to decimal, for easier read and alerting.

@vilhelmprytz vilhelmprytz added the enhancement New feature or request label Aug 1, 2024
@vilhelmprytz vilhelmprytz self-assigned this Aug 1, 2024
@vilhelmprytz
Copy link
Owner Author

Should also be noted that older Areca controllers expose data in a very different kind of format

# areca.cli64 disk smart drv=1
S.M.A.R.T Information For Drive[#01]
  # Attribute Items               Flag Value Worst Thres          Raw    State
===============================================================================
  5 Reallocated Sector Count      0x33   100   100    10            0       OK
  9 Power-on Hours Count          0x32    86    86     0        67383       OK
 12 Device Power Cycle Count      0x32    99    99     0           25       OK
177 Wear Leveling Count           0x13    99    99     5          127       OK
181 Program Fail Count Total      0x32   100   100     0            0       OK
182 Erase Fail Count Total        0x32   100   100     0            0       OK
187 Reported Uncorrect            0x32   100   100     0            0       OK
190 190 Temperature               0x32    72    58     0           28       OK
195 Hardware ECC Recovered        0x1a   200   200     0            0       OK
199 Ultra DMA CRC Error Count     0x3e   100   100     0            0       OK
241 Total LBAs Written            0x32    99    99     0  58108697678       OK
===============================================================================
GuiErrMsg<0x00>: Success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant