Ad Widget

Collapse

Zabbix Agent2 on Windows can't get hdd smart data.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • akong77
    Junior Member
    • Oct 2018
    • 21

    #16
    I use this command.
    zabbix_agent2 -v -c "C:\Program Files\Zabbix Agent 2\zabbix_agent2.conf" -t smart.disk.get > smart.log
    I got some information.
    Please check it.
    Attached Files

    Comment

    • akong77
      Junior Member
      • Oct 2018
      • 21

      #17
      Have find any question?

      Comment

      • vladimir_lv
        Senior Member
        • May 2022
        • 240

        #18
        Have a look at the log:
        Code:
        2022/08/03 14:15:33.258604 [Smart] command "C:\Program Files\smartmontools\bin\smartctl.exe" -a /dev/csmi3,1 -j smartctl raw response: {
          "json_format_version": [
            1,
            0
          ],
          "smartctl": {
            "version": [
              7,
              3
            ],
            "svn_revision": "5338",
            "platform_info": "x86_64-w64-mingw32-2019-1809",
            "build_info": "(sf-7.3-1)",
            "argv": [
              "smartctl",
              "-a",
              "/dev/csmi3,1",
              "-j"
            ],
            "drive_database_version": {
              "string": "7.3/5319"
            },
            "exit_status": 4
          },
          "local_time": {
            "time_t": 1659507333,
            "asctime": "Wed Aug 03 14:15:33 2022 "
          },
          "device": {
            "name": "/dev/csmi3,1",
            "info_name": "/dev/csmi3,1",
            "type": "ata",
            "protocol": "ATA"
          },
          "model_name": "",
          "serial_number": "",
          "firmware_version": "",
          "trim": {
            "supported": false
          },
          "in_smartctl_database": false
        }
        2022/08/03 14:15:33.258604 [Smart] skipping device /dev/csmi3,1
        So, smartctl didn't return anything.
        Exit status 4 for smartctl means "Some SMART or other ATA command to the disk failed, or there was a checksum error in a SMART data structure"

        Comment

        • akong77
          Junior Member
          • Oct 2018
          • 21

          #19
          But I run smartctl.exe -a /dev/sda have found hdd status.What is this problem?

          Comment

          • vladimir_lv
            Senior Member
            • May 2022
            • 240

            #20
            Have a look at the log once again:
            Code:
            2022/08/03 14:15:33.153055 [Smart] executing smartctl command: "C:\Program Files\smartmontools\bin\smartctl.exe" -a /dev/csmi3,4 -j
            2022/08/03 14:15:33.153055 [Smart] executing smartctl command: "C:\Program Files\smartmontools\bin\smartctl.exe" -a /dev/csmi3,5 -j
            2022/08/03 14:15:33.153055 [Smart] executing smartctl command: "C:\Program Files\smartmontools\bin\smartctl.exe" -a /dev/csmi3,12 -j
            2022/08/03 14:15:33.153055 [Smart] executing smartctl command: "C:\Program Files\smartmontools\bin\smartctl.exe" -a /dev/csmi3,1 -j
            2022/08/03 14:15:33.153055 [Smart] executing smartctl command: "C:\Program Files\smartmontools\bin\smartctl.exe" -a /dev/csmi3,10 -j
            2022/08/03 14:15:33.153569 [Smart] executing smartctl command: "C:\Program Files\smartmontools\bin\smartctl.exe" -a /dev/csmi3,0 -j
            2022/08/03 14:15:33.153569 [Smart] executing smartctl command: "C:\Program Files\smartmontools\bin\smartctl.exe" -a /dev/csmi3,11 -j
            2022/08/03 14:15:33.153569 [Smart] executing smartctl command: "C:\Program Files\smartmontools\bin\smartctl.exe" -a /dev/csmi3,13 -j
            2022/08/03 14:15:33.153569 [Smart] executing smartctl command: "C:\Program Files\smartmontools\bin\smartctl.exe" -a /dev/csmi3,14 -j
            2022/08/03 14:15:33.154084 [Smart] executing smartctl command: "C:\Program Files\smartmontools\bin\smartctl.exe" -a /dev/csmi3,15 -j
            2022/08/03 14:15:33.154084 [Smart] executing smartctl command: "C:\Program Files\smartmontools\bin\smartctl.exe" -a /dev/csmi3,2 -j
            2022/08/03 14:15:33.155100 [Smart] executing smartctl command: "C:\Program Files\smartmontools\bin\smartctl.exe" -a /dev/csmi3,3 -j
            I don't know why but smartctl just skips founded devices such as /dev/sda, /dev/sdb and /dev/sdc.

            Comment

            • akong77
              Junior Member
              • Oct 2018
              • 21

              #21
              So.
              Could any test solution?

              Comment


              • vladimir_lv
                vladimir_lv commented
                Editing a comment
                I don't know. Let's try older version of smartctl
            • akong77
              Junior Member
              • Oct 2018
              • 21

              #22
              OK,I try it.

              Comment

              Working...