Ad Widget

Collapse

SMART by Zabbix agent 2 active and WDS250G2B0A-00SM50

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mgrunt
    Junior Member
    • Aug 2023
    • 3

    #1

    SMART by Zabbix agent 2 active and WDS250G2B0A-00SM50

    Hi, I have trouble with "SMART by Zabbix agent 2 active" template and WDS250G2B0A-00SM50 (SATA SSD)

    When I create host with this template I get error

    Cannot fetch data: Cannot unmarshal JSON: json: cannot unmarshal number 90280100974 into Go struct field rawField.ata_smart_attributes.table.raw.value of type int.
    Here is info from smartctl:

    Code:
    C:\WINDOWS\system32>smartctl -A /dev/sda
    smartctl 7.3 2022-02-28 r5338 [i686-w64-mingw32-w10-b19045] (sf-7.3-1)
    Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org​
    
    === START OF READ SMART DATA SECTION ===
    SMART Attributes Data Structure revision number: 4
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
      5 Reallocated_Sector_Ct   0x0032   100   100   ---    Old_age   Always       -       0
      9 Power_On_Hours          0x0032   100   100   ---    Old_age   Always       -       23197
     12 Power_Cycle_Count       0x0032   100   100   ---    Old_age   Always       -       13
    165 Block_Erase_Count       0x0032   100   100   ---    Old_age   Always       -       90280100974
    166 Minimum_PE_Cycles_TLC   0x0032   100   100   ---    Old_age   Always       -       1
    167 Max_Bad_Blocks_per_Die  0x0032   100   100   ---    Old_age   Always       -       39
    168 Maximum_PE_Cycles_TLC   0x0032   100   100   ---    Old_age   Always       -       25
    169 Total_Bad_Blocks        0x0032   100   100   ---    Old_age   Always       -       149
    170 Grown_Bad_Blocks        0x0032   100   100   ---    Old_age   Always       -       0
    171 Program_Fail_Count      0x0032   100   100   ---    Old_age   Always       -       0
    172 Erase_Fail_Count        0x0032   100   100   ---    Old_age   Always       -       0
    173 Average_PE_Cycles_TLC   0x0032   100   100   ---    Old_age   Always       -       9
    174 Unexpected_Power_Loss   0x0032   100   100   ---    Old_age   Always       -       5
    184 End-to-End_Error        0x0032   100   100   ---    Old_age   Always       -       0
    187 Reported_Uncorrect      0x0032   100   100   ---    Old_age   Always       -       0
    188 Command_Timeout         0x0032   100   100   ---    Old_age   Always       -       0
    194 Temperature_Celsius     0x0022   071   037   ---    Old_age   Always       -       29 (Min/Max 21/37)
    199 UDMA_CRC_Error_Count    0x0032   100   100   ---    Old_age   Always       -       0
    230 Media_Wearout_Indicator 0x0032   002   002   ---    Old_age   Always       -       0x021a005a021a
    232 Available_Reservd_Space 0x0033   100   100   004    Pre-fail  Always       -       100
    233 NAND_GB_Written_TLC     0x0032   100   100   ---    Old_age   Always       -       2299
    234 NAND_GB_Written_SLC     0x0032   100   100   ---    Old_age   Always       -       6745
    241 Host_Writes_GiB         0x0030   253   253   ---    Old_age   Offline      -       5759
    242 Host_Reads_GiB          0x0030   253   253   ---    Old_age   Offline      -       5124
    244 Temp_Throttle_Status    0x0032   000   100   ---    Old_age   Always       -       0​
    I can not search any information about this error... Is it problem in this line?

    165 Block_Erase_Count 0x0032 100 100 --- Old_age Always - 90280100974

    For example Samsung EVO 860 and EVO 870 working fine with this template.

    Thank you.
  • mgrunt
    Junior Member
    • Aug 2023
    • 3

    #2
    Today I get the similar trouble with WDS500G1R0A-68A4W0.

    Cannot fetch data: Cannot unmarshal JSON: json: cannot unmarshal number 128850657310 into Go struct field rawField.ata_smart_attributes.table.raw.value of type int.
    smartctl -A /dev/sdb

    Code:
    smartctl 7.4 2023-08-01 r5530 [i686-w64-mingw32-w10-22H2] (sf-7.4-1)
    Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org
    
    === START OF READ SMART DATA SECTION ===
    SMART Attributes Data Structure revision number: 4
    Vendor Specific SMART Attributes with Thresholds:
    ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
      5 Reallocated_Sector_Ct   0x0032   100   100   ---    Old_age   Always       -       0
      9 Power_On_Hours          0x0032   100   100   ---    Old_age   Always       -       0
     12 Power_Cycle_Count       0x0032   100   100   ---    Old_age   Always       -       2
    165 Block_Erase_Count       0x0032   100   100   ---    Old_age   Always       -       0
    166 Minimum_PE_Cycles_TLC   0x0032   100   100   ---    Old_age   Always       -       0
    167 Max_Bad_Blocks_per_Die  0x0032   100   100   ---    Old_age   Always       -       41
    168 Maximum_PE_Cycles_TLC   0x0032   100   100   ---    Old_age   Always       -       0
    169 Total_Bad_Blocks        0x0032   100   100   ---    Old_age   Always       -       193
    170 Grown_Bad_Blocks        0x0032   100   100   ---    Old_age   Always       -       0
    171 Program_Fail_Count      0x0032   100   100   ---    Old_age   Always       -       0
    172 Erase_Fail_Count        0x0032   100   100   ---    Old_age   Always       -       0
    173 Average_PE_Cycles_TLC   0x0032   100   100   ---    Old_age   Always       -       0
    174 Unexpected_Power_Loss   0x0032   100   100   ---    Old_age   Always       -       0
    184 End-to-End_Error        0x0032   100   100   ---    Old_age   Always       -       0
    187 Reported_Uncorrect      0x0032   100   100   ---    Old_age   Always       -       0
    188 Command_Timeout         0x0032   100   100   ---    Old_age   Always       -       0
    194 Temperature_Celsius     0x0022   070   030   ---    Old_age   Always       -       30 (Min/Max 25/30)
    199 UDMA_CRC_Error_Count    0x0032   100   100   ---    Old_age   Always       -       0
    230 Media_Wearout_Indicator 0x0032   001   001   ---    Old_age   Always       -       0x000000000000
    232 Available_Reservd_Space 0x0033   100   100   004    Pre-fail  Always       -       100
    233 NAND_GB_Written_TLC     0x0032   100   100   ---    Old_age   Always       -       0
    234 NAND_GB_Written_SLC     0x0032   100   100   ---    Old_age   Always       -       0
    241 Host_Writes_GiB         0x0030   253   253   ---    Old_age   Offline      -       0
    242 Host_Reads_GiB          0x0030   253   253   ---    Old_age   Offline      -       0
    244 Temp_Throttle_Status    0x0032   000   100   ---    Old_age   Always       -       0​
    smartctl -a -j /dev/sdb

    Code:
    {
    "id": 194,
    "name": "Temperature_Celsius",
    "value": 70,
    "worst": 30,
    "flags": {
    "value": 34,
    "string": "-O---K ",
    "prefailure": false,
    "updated_online": true,
    "performance": false,
    "error_rate": false,
    "event_count": false,
    "auto_keep": true
    },
    "raw": {
    "value": 128850657310,
    "string": "30 (Min/Max 25/30)"
    }
    },​

    Comment

    • mgrunt
      Junior Member
      • Aug 2023
      • 3

      #3
      I think I figured out the problem. The OS where Agent 2 is is 32-bit (Win10 32bit) and values no longer fit into int32 (overflow). Could this be the problem and how to fix it?

      Comment

      Working...