Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-26098

failed to execute smartctl on some machines

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 7.2.3
    • Windows Server 2019 Std on both machines
      Smartmontools from 7.1 to 7.5 beta on problem machine, 7.4 on working

      Steps to reproduce:

      1. Plugins.Smart.Path=C:\Program Files\smartmontools\bin\smartctl.exe
      2. on working machine 
        zabbix_get -s working -k smart.disk.discovery
        [{"{#NAME}":"csmi1,2","{#DISKTYPE}":"ssd","{#MODEL}":"KINGSTON SA400S37960G","{#SN}":"50026B73826AE2A7","{#PATH}":"/dev/csmi1,2","{#RAIDTYPE}":"","{#ATTRIBUTES}":"Raw_Read_Error_Rate Power_On_Hours Power_Cycle_Count Write_Protect_Mode SATA_Phy_Error_Count Bad_Block_Rate Bad_Blk_Ct_Lat/Erl Erase_Fail_Count MaxAvgErase_Ct Program_Fail_Count Erase_Fail_Count Reported_Uncorrect Unsafe_Shutdown_Count Temperature_Celsius Reallocated_Event_Count SATA_CRC_Error_Count CRC_Error_Count SSD_Life_Left Flash_Writes_GiB Lifetime_Writes_GiB Lifetime_Reads_GiB Average_Erase_Count Max_Erase_Count Total_Erase_Count"},{"{#NAME}":"csmi3,0","{#DISKTYPE}":"ssd","{#MODEL}":"Samsung SSD 860 EVO 500GB","{#SN}":"S3YANB0K901192J","{#PATH}":"/dev/csmi3,0","{#RAIDTYPE}":"","{#ATTRIBUTES}":"Reallocated_Sector_Ct Power_On_Hours Power_Cycle_Count Wear_Leveling_Count Used_Rsvd_Blk_Cnt_Tot Program_Fail_Cnt_Total Erase_Fail_Count_Total Runtime_Bad_Block Uncorrectable_Error_Cnt Airflow_Temperature_Cel ECC_Error_Rate CRC_Error_Count POR_Recovery_Count Total_LBAs_Written"},{"{#NAME}":"csmi3,3","{#DISKTYPE}":"hdd","{#MODEL}":"WDC WD40PURX-64NZ6Y0","{#SN}":"WD-WCC7K3CYPR4K","{#PATH}":"/dev/csmi3,3","{#RAIDTYPE}":"","{#ATTRIBUTES}":"Raw_Read_Error_Rate Spin_Up_Time Start_Stop_Count Reallocated_Sector_Ct Seek_Error_Rate Power_On_Hours Spin_Retry_Count Calibration_Retry_Count Power_Cycle_Count Power-Off_Retract_Count Load_Cycle_Count Temperature_Celsius Reallocated_Event_Count Current_Pending_Sector Offline_Uncorrectable UDMA_CRC_Error_Count Multi_Zone_Error_Rate"},{"{#NAME}":"sda","{#DISKTYPE}":"nvme","{#MODEL}":"HS-SSD-E1000 1024G","{#SN}":"30128888279","{#PATH}":"/dev/sda","{#RAIDTYPE}":"","{#ATTRIBUTES}":""},{"{#NAME}":"csmi1,1","{#DISKTYPE}":"hdd","{#MODEL}":"WDC WD8003FFBX-68B9AN0","{#SN}":"VR1SJJMK","{#PATH}":"/dev/csmi1,1","{#RAIDTYPE}":"","{#ATTRIBUTES}":"Raw_Read_Error_Rate Throughput_Performance Spin_Up_Time Start_Stop_Count Reallocated_Sector_Ct Seek_Error_Rate Seek_Time_Performance Power_On_Hours Spin_Retry_Count Power_Cycle_Count Power-Off_Retract_Count Load_Cycle_Count Temperature_Celsius Reallocated_Event_Count Current_Pending_Sector Offline_Uncorrectable UDMA_CRC_Error_Count"}]
      1. not working
        zabbix_get -s hel.kia.local -k smart.disk.discovery
        ZBX_NOTSUPPORTED: Cannot fetch data.: got error executing worker pool: failed to execute smartctl: "{\r\n  \"json_format_version\": [\r\n    1,\r\n    0\r\n  ],\r\n  \"smartctl\": {\r\n    \"version\": [\r\n      7,\r\n      5\r\n    ],\r\n    \"pre_release\": true,\r\n    \"svn_revision\": \"5664\",\r\n    \"platform_info\": \"x86_64-w64-mingw32-2019-1809\",\r\n    \"build_info\": \"(CircleCI)\",\r\n    \"argv\": [\r\n      \"smartctl\",\r\n      \"-a\",\r\n      \"/dev/sdc\",\r\n      \"-j\"\r\n    ],\r\n    \"exit_status\": 4\r\n  },\r\n  \"local_time\": {\r\n    \"time_t\": 1740543047,\r\n    \"asctime\": \"Wed Feb 26 11:10:47 2025 RTZ\"\r\n  },\r\n  \"device\": {\r\n    \"name\": \"/dev/sdc\",\r\n    \"info_name\": \"/dev/sdc\",\r\n    \"type\": \"scsi\",\r\n    \"protocol\": \"SCSI\"\r\n  },\r\n  \"scsi_vendor\": \"Intel\",\r\n  \"scsi_product\": \"Raid 1 Volume\",\r\n  \"model_name\": \"Intel Raid 1 Volume\",\r\n  \"scsi_model_name\": \"Intel Raid 1 Volume\",\r\n  \"scsi_revision\": \"1.0.\",\r\n  \"scsi_version\": \"SPC-3\",\r\n  \"user_capacity\": {\r\n    \"blocks\": 468856832,\r\n    \"bytes\": 240054697984\r\n  },\r\n  \"logical_block_size\": 512,\r\n  \"scsi_lb_provisioning\": {\r\n    \"name\": \"fully provisioned\",\r\n    \"value\": 0,\r\n    \"management_enabled\": {\r\n      \"name\": \"LBPME\",\r\n      \"value\": -1\r\n    },\r\n    \"read_zeros\": {\r\n      \"name\": \"LBPRZ\",\r\n      \"value\": 0\r\n    }\r\n  },\r\n  \"rotation_rate\": 0,\r\n  \"logical_unit_id\": \"0x73eda1c201000000001517ffff0aeb84\",\r\n  \"serial_number\": \"SSDRAID1\",\r\n  \"device_type\": {\r\n    \"scsi_terminology\": \"Peripheral Device Type [PDT]\",\r\n    \"scsi_value\": 0,\r\n    \"name\": \"disk\"\r\n  },\r\n  \"smart_support\": {\r\n    \"available\": false\r\n  },\r\n  \"temperature\": {\r\n    \"current\": 0,\r\n    \"drive_trip\": 0\r\n  },\r\n  \"seagate_farm_log\": {\r\n    \"supported\": false\r\n  }\r\n}\r": exit status 4.

      Smartctl output from cmd on problem machine

       

      C:\WINDOWS\system32>"C:\Program Files\smartmontools\bin\smartctl.exe" -j -V
      {
        "json_format_version": [
          1,
          0
        ],
        "smartctl": {
          "version": [
            7,
            5
          ],
          "pre_release": true,
          "svn_revision": "5664",
          "platform_info": "x86_64-w64-mingw32-2019-1809",
          "build_info": "(CircleCI)",
          "argv": [
            "smartctl",
            "-j",
            "-V"
          ],
          "exit_status": 0
        }
      }     
      C:\WINDOWS\system32>"C:\Program Files\smartmontools\bin\smartctl.exe" --scan -j
      {
        "json_format_version": [
          1,
          0
        ],
        "smartctl": {
          "version": [
            7,
            5
          ],
          "pre_release": true,
          "svn_revision": "5664",
          "platform_info": "x86_64-w64-mingw32-2019-1809",
          "build_info": "(CircleCI)",
          "argv": [
            "smartctl",
            "--scan",
            "-j"
          ],
          "exit_status": 0
        },
        "devices": [
          {
            "name": "/dev/sda",
            "info_name": "/dev/sda",
            "type": "ata",
            "protocol": "ATA"
          },
          {
            "name": "/dev/sdb",
            "info_name": "/dev/sdb",
            "type": "ata",
            "protocol": "ATA"
          },
          {
            "name": "/dev/sdc",
            "info_name": "/dev/sdc",
            "type": "scsi",
            "protocol": "SCSI"
          },
          {
            "name": "/dev/csmi0,0",
            "info_name": "/dev/csmi0,0",
            "type": "ata",
            "protocol": "ATA"
          },
          {
            "name": "/dev/csmi0,1",
            "info_name": "/dev/csmi0,1",
            "type": "ata",
            "protocol": "ATA"
          },
          {
            "name": "/dev/csmi0,3",
            "info_name": "/dev/csmi0,3",
            "type": "ata",
            "protocol": "ATA"
          },
          {
            "name": "/dev/csmi0,5",
            "info_name": "/dev/csmi0,5",
            "type": "ata",
            "protocol": "ATA"
          }
        ]
      }

       

            jprusinowski Jan Prusinowski
            Degtyarev Aleksey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: