Ad Widget

Collapse

Zabbix Agent2 on Windows SMART monitoring

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mario_rossi
    Junior Member
    • Jun 2024
    • 15

    #1

    Zabbix Agent2 on Windows SMART monitoring

    Hi,
    I'm new to this form and I'm looking for help to use the SMART template in Zabbix connected to a virtual machine with a 64-bit Windows 10 operating system.
    I have installed and configured the Zabbix 2 agent and everything works correctly, without problems, however when I connect the "SMART by Zabbix agent 2" template the data is not transmitted and therefore I cannot carry out monitoring.
    Click image for larger version

Name:	image.png
Views:	2046
Size:	19.2 KB
ID:	486649​I installed the "smartmontools" program on the Windows VM but even with this it doesn't seem to detect data. If I run the command "smartctl.exe -a /dev/sda" in cmd I can correctly see all the data on the physical disk.
    Click image for larger version

Name:	image.png
Views:	1903
Size:	131.6 KB
ID:	486650
    I also saw this guide https://www.zabbix.com/forum/zabbix-...hdd-smart-data and tried to perform these steps but without success, I always get error.
  • Answer selected by mario_rossi at 03-07-2024, 09:12.
    mario_rossi
    Junior Member
    • Jun 2024
    • 15

    Hi,
    shared the solution. I solved my problem by placing this string in the smart.conf file. Spaces or quotation marks are not well accepted.

    Plugins.Smart.Path=C:\PROGRA~1\smartmontools\bin\smartctl.exe
    PROGRA~1 refers to the Program Files folder in Windows. Check if the path is correct using the cmd. Something in your Windows configuration may be different. The command to look at your folders in Program Files is

    cd C:\Program Files
    dir /x
    you should get a similar list

    Click image for larger version

Name:	image.png
Views:	1872
Size:	63.0 KB
ID:	486864​​

    Comment


    • rster
      rster commented
      Editing a comment
      Sir, you are a genius.
      Many thanks!
  • mario_rossi
    Junior Member
    • Jun 2024
    • 15

    #2
    no one with the same problem, possible?

    Comment

    • Markku
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Sep 2018
      • 1781

      #3
      How is your agent configured and what does it say in the logs? Increase the logging level if needed.

      Markku

      Comment

      • mario_rossi
        Junior Member
        • Jun 2024
        • 15

        #4

        Hi,
        my event log says this

        10064:20240629:132949.477 Failed to execute command " type "C:\Program Files\smartmontools\bin\smartctl.exe"": Timeout while executing a shell script.
        10064:20240629:132949.479 Sending back [ZBX_NOTSUPPORTED: Timeout while executing a shell script.]
        7460:20240629:132949.482 Requested [service.info["HarZabbix",state]]
        7460:20240629:132949.483 Sending back [6]
        10064:20240629:132949.485 Requested [vm.memory.size[used]]
        10064:20240629:132949.486 Sending back [3873878016]
        4768:20240629:132949.646 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        9320:20240629:132949.648 In collect_perfstat()
        4768:20240629:132949.648 End of send_buffer():SUCCEED
        9320:20240629:132949.651 End of collect_perfstat()
        6752:20240629:132950.490 Requested [service.info["IKEEXT",state]]
        7460:20240629:132950.491 Requested [disco]
        6752:20240629:132950.492 Sending back [0]
        9320:20240629:132950.665 In collect_perfstat()
        4768:20240629:132950.666 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        4768:20240629:132950.667 End of send_buffer():SUCCEED
        9320:20240629:132950.669 End of collect_perfstat()
        10064:20240629:132951.492 Requested [wmi.get[root/cimv2,"Select NumberOfLogicalProcessors from Win32_ComputerSystem"]]
        6752:20240629:132951.493 Requested [service.info["iphlpsvc",state]]
        6752:20240629:132951.494 Sending back [0]
        10064:20240629:132951.508 Sending back [4]
        4768:20240629:132951.669 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        4768:20240629:132951.670 End of send_buffer():SUCCEED
        4768:20240629:132951.670 In refresh_active_checks() host:'xx.xxx.xxx.xx' port:10051
        4768:20240629:132951.671 In zbx_connect_to_server() [xx.xxx.xxx.xx]:10051 [timeout:3, connection timeout:3]
        4768:20240629:132951.672 sending [{"request":"active checks","host":"xxxxxxxxx","config_revision":1,"se ssion":"xxxxxxxx"}]
        4768:20240629:132951.673 before read
        4768:20240629:132951.674 got [{"response":"success"}]
        4768:20240629:132951.675 In parse_list_of_checks()
        4768:20240629:132951.675 End of parse_list_of_checks():SUCCEED
        4768:20240629:132951.676 End of refresh_active_checks():SUCCEED
        4768:20240629:132951.677 In process_active_checks() server:'xx.xxx.xxx.xx' port:10051
        4768:20240629:132951.677 End of process_active_checks()
        4768:20240629:132951.678 In get_min_nextcheck()
        4768:20240629:132951.679 End of get_min_nextcheck():1719660637
        9320:20240629:132951.684 In collect_perfstat()
        9320:20240629:132951.687 End of collect_perfstat()
        6752:20240629:132952.497 Requested [wmi.getall[root\cimv2,"select Name,Description,NetConnectionID,Speed,AdapterType Id,NetConnectionStatus,GUID from win32_networkadapter where PhysicalAdapter=True and NetConnectionStatus>0"]]
        10064:20240629:132952.498 Requested [service.info["LanmanServer",state]]
        10064:20240629:132952.499 Sending back [0]
        6752:20240629:132952.592 Sending back [[{"AdapterTypeId":0,"Description":"Red Hat VirtIO Ethernet Adapter","GUID":"{5025EE8E-A4E7-447E-A140-7BB1199FAEC5}","Name":"Red Hat VirtIO Ethernet Adapter","NetConnectionID":"Ethernet","NetConnecti onStatus":2,"Speed":"10000000000"}]]
        4768:20240629:132952.688 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        4768:20240629:132952.689 End of send_buffer():SUCCEED
        9320:20240629:132952.703 In collect_perfstat()
        9320:20240629:132952.706 End of collect_perfstat()
        the smartmontools program is installed here: C:\Program Files\smartmontools\bin while the zabix agent is installed here: C:\Zabbix

        I placed it in the file C:\Program Files\smartmontools\bin\smart.conf
        Plugins.Smart.Path="C:\Program Files\smartmontools\bin\smartctl.exe"
        zabbix_agent -c "C:\Zabbix\zabbix_agentd.conf" -t smart.disk.get zz0.b931tbobr99zz
        this is the log I get

        5264:20240629:134530.765 Sending back [0.004304]
        8976:20240629:134530.766 Sending back [0.000000]
        7900:20240629:134530.951 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134530.952 End of send_buffer():SUCCEED
        192:20240629:134531.637 In collect_perfstat()
        192:20240629:134531.640 End of collect_perfstat()
        9360:20240629:134531.758 Requested [perf_counter_en["\Processor Information(_total)\% Interrupt Time"]]
        9360:20240629:134531.758 In perf_counter_en()
        9360:20240629:134531.759 In get_perf_counter_value_by_path() path:\Processor Information(_total)\% Interrupt Time interval:1 lang:1
        9360:20240629:134531.760 End of get_perf_counter_value_by_path():SUCCEED
        9360:20240629:134531.761 End of perf_counter_en():SUCCEED
        8976:20240629:134531.762 Requested [perf_counter_en["\PhysicalDisk(0 C\Avg. Disk sec/Read",60]]
        9360:20240629:134531.762 Sending back [0.383568]
        8976:20240629:134531.763 In perf_counter_en()
        5264:20240629:134531.764 Requested [disco]
        8976:20240629:134531.765 In get_perf_counter_value_by_path() path:\PhysicalDisk(0 C\Avg. Disk sec/Read interval:60 lang:1
        5264:20240629:134531.765 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        8976:20240629:134531.766 End of get_perf_counter_value_by_path():SUCCEED
        8976:20240629:134531.767 End of perf_counter_en():SUCCEED
        8976:20240629:134531.768 Sending back [0.000037]
        7900:20240629:134531.954 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134531.955 End of send_buffer():SUCCEED
        192:20240629:134532.656 In collect_perfstat()
        192:20240629:134532.659 End of collect_perfstat()
        5264:20240629:134532.768 Requested [perf_counter_en["\Processor Information(_total)\% Privileged Time"]]
        5264:20240629:134532.769 In perf_counter_en()
        9360:20240629:134532.770 Requested [disco]
        8976:20240629:134532.771 Requested [perf_counter_en["\PhysicalDisk(0 C\Avg. Disk sec/Write",60]]
        5264:20240629:134532.771 In get_perf_counter_value_by_path() path:\Processor Information(_total)\% Privileged Time interval:1 lang:1
        9360:20240629:134532.772 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        8976:20240629:134532.773 In perf_counter_en()
        5264:20240629:134532.773 End of get_perf_counter_value_by_path():SUCCEED
        8976:20240629:134532.774 In get_perf_counter_value_by_path() path:\PhysicalDisk(0 C\Avg. Disk sec/Write interval:60 lang:1
        5264:20240629:134532.775 End of perf_counter_en():SUCCEED
        8976:20240629:134532.775 End of get_perf_counter_value_by_path():SUCCEED
        5264:20240629:134532.776 Sending back [3.066276]
        8976:20240629:134532.777 End of perf_counter_en():SUCCEED
        8976:20240629:134532.778 Sending back [0.000573]
        7900:20240629:134532.957 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134532.958 End of send_buffer():SUCCEED
        7900:20240629:134532.959 In refresh_active_checks() host:'xx.xxx.xxx.xx' port:10051
        7900:20240629:134532.960 In zbx_connect_to_server() [xx.xxx.xxx.xx]:10051 [timeout:3, connection timeout:3]
        7900:20240629:134532.961 sending [{"request":"active checks","host":"WIN-xxxxxxxxx","config_revision":263,"session":"c47177 e92b320c9baac4b30d44bb9ca4"}]
        7900:20240629:134532.962 before read
        7900:20240629:134532.963 got [{"response":"success"}]
        7900:20240629:134532.963 In parse_list_of_checks()
        7900:20240629:134532.964 End of parse_list_of_checks():SUCCEED
        7900:20240629:134532.965 End of refresh_active_checks():SUCCEED
        7900:20240629:134532.965 In process_active_checks() server:'xx.xxx.xxx.xx' port:10051
        7900:20240629:134532.966 End of process_active_checks()
        7900:20240629:134532.966 In get_min_nextcheck()
        7900:20240629:134532.967 End of get_min_nextcheck():1719661563
        192:20240629:134533.676 In collect_perfstat()
        192:20240629:134533.679 End of collect_perfstat()
        5264:20240629:134533.772 Requested [disco]
        5264:20240629:134533.773 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        9360:20240629:134533.774 Requested [perf_counter_en["\Processor Information(_total)\% User Time"]]
        8976:20240629:134533.775 Requested [perf_counter_en["\PhysicalDisk(0 C\Current Disk Queue Length",60]]
        9360:20240629:134533.776 In perf_counter_en()
        8976:20240629:134533.776 In perf_counter_en()
        9360:20240629:134533.777 In get_perf_counter_value_by_path() path:\Processor Information(_total)\% User Time interval:1 lang:1
        8976:20240629:134533.778 In get_perf_counter_value_by_path() path:\PhysicalDisk(0 C\Current Disk Queue Length interval:60 lang:1
        9360:20240629:134533.779 End of get_perf_counter_value_by_path():SUCCEED
        8976:20240629:134533.779 End of get_perf_counter_value_by_path():SUCCEED
        9360:20240629:134533.780 End of perf_counter_en():SUCCEED
        8976:20240629:134533.781 End of perf_counter_en():SUCCEED
        9360:20240629:134533.781 Sending back [3.832390]
        8976:20240629:134533.782 Sending back [0.133333]
        7900:20240629:134533.976 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134533.977 End of send_buffer():SUCCEED
        192:20240629:134534.695 In collect_perfstat()
        192:20240629:134534.697 End of collect_perfstat()
        5264:20240629:134534.784 Requested [perf_counter_en["\PhysicalDisk(0 C\Disk Reads/sec",60]]
        9360:20240629:134534.785 Requested [disco]
        5264:20240629:134534.786 In perf_counter_en()
        9360:20240629:134534.786 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        5264:20240629:134534.787 In get_perf_counter_value_by_path() path:\PhysicalDisk(0 C\Disk Reads/sec interval:60 lang:1
        5264:20240629:134534.788 End of get_perf_counter_value_by_path():SUCCEED
        5264:20240629:134534.788 End of perf_counter_en():SUCCEED
        5264:20240629:134534.789 Sending back [0.065333]
        8976:20240629:134534.790 Requested [perf_counter_en["\System\Context Switches/sec"]]
        8976:20240629:134534.791 In perf_counter_en()
        8976:20240629:134534.792 In get_perf_counter_value_by_path() path:\System\Context Switches/sec interval:1 lang:1
        8976:20240629:134534.792 End of get_perf_counter_value_by_path():SUCCEED
        8976:20240629:134534.793 End of perf_counter_en():SUCCEED
        8976:20240629:134534.793 Sending back [6234.819618]
        7900:20240629:134534.980 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134534.981 End of send_buffer():SUCCEED
        192:20240629:134535.720 In collect_perfstat()
        192:20240629:134535.722 End of collect_perfstat()
        5264:20240629:134535.769 Requested [perf_counter_en["\PhysicalDisk(0 C\Disk Writes/sec",60]]
        5264:20240629:134535.770 In perf_counter_en()
        5264:20240629:134535.770 In get_perf_counter_value_by_path() path:\PhysicalDisk(0 C\Disk Writes/sec interval:60 lang:1
        5264:20240629:134535.771 End of get_perf_counter_value_by_path():SUCCEED
        5264:20240629:134535.772 End of perf_counter_en():SUCCEED
        5264:20240629:134535.772 Sending back [5.756411]
        8976:20240629:134535.774 Requested [perf_counter_en["\System\Processor Queue Length"]]
        8976:20240629:134535.775 In perf_counter_en()
        8976:20240629:134535.775 In get_perf_counter_value_by_path() path:\System\Processor Queue Length interval:1 lang:1
        8976:20240629:134535.776 End of get_perf_counter_value_by_path():SUCCEED
        8976:20240629:134535.777 End of perf_counter_en():SUCCEED
        8976:20240629:134535.777 Sending back [0.000000]
        9360:20240629:134535.779 Requested [disco]
        9360:20240629:134535.780 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        7900:20240629:134535.983 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134535.984 End of send_buffer():SUCCEED
        192:20240629:134536.739 In collect_perfstat()
        192:20240629:134536.742 End of collect_perfstat()
        9360:20240629:134536.783 Requested [perf_counter_en["\System\Threads"]]
        9360:20240629:134536.784 In perf_counter_en()
        9360:20240629:134536.785 In get_perf_counter_value_by_path() path:\System\Threads interval:1 lang:1
        9360:20240629:134536.785 End of get_perf_counter_value_by_path():SUCCEED
        9360:20240629:134536.786 End of perf_counter_en():SUCCEED
        9360:20240629:134536.787 Sending back [1432.000000]
        5264:20240629:134536.788 Requested [disco]
        5264:20240629:134536.789 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        8976:20240629:134536.791 Requested [service.info["BalloonService",state]]
        8976:20240629:134536.792 Sending back [0]
        7900:20240629:134536.986 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134536.987 End of send_buffer():SUCCEED
        192:20240629:134537.758 In collect_perfstat()
        192:20240629:134537.761 End of collect_perfstat()
        9360:20240629:134537.795 Requested [disco]
        9360:20240629:134537.795 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        8976:20240629:134537.797 Requested [service.info["BFE",state]]
        8976:20240629:134537.798 Sending back [0]
        5264:20240629:134537.799 Requested [proc.num[]]
        5264:20240629:134537.804 Sending back [183]
        7900:20240629:134537.990 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134537.991 End of send_buffer():SUCCEED
        7900:20240629:134537.992 In refresh_active_checks() host:'xx.xxx.xxx.xx' port:10051
        7900:20240629:134537.992 In zbx_connect_to_server() [xx.xxx.xxx.xx]:10051 [timeout:3, connection timeout:3]
        7900:20240629:134537.994 sending [{"request":"active checks","host":"WIN-xxxxxxxxx","config_revision":263,"session":"c47177 e92b320c9baac4b30d44bb9ca4"}]
        7900:20240629:134537.994 before read
        7900:20240629:134537.995 got [{"response":"success"}]
        7900:20240629:134537.996 In parse_list_of_checks()
        7900:20240629:134537.996 End of parse_list_of_checks():SUCCEED
        7900:20240629:134537.997 End of refresh_active_checks():SUCCEED
        7900:20240629:134537.998 In process_active_checks() server:'xx.xxx.xxx.xx' port:10051
        7900:20240629:134537.999 End of process_active_checks()
        7900:20240629:134537.999 In get_min_nextcheck()
        7900:20240629:134538.000 End of get_min_nextcheck():1719661563
        7900:20240629:134538.000 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134538.001 End of send_buffer():SUCCEED
        192:20240629:134538.776 In collect_perfstat()
        192:20240629:134538.779 End of collect_perfstat()
        8976:20240629:134538.801 Requested [disco]
        8976:20240629:134538.802 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        5264:20240629:134538.803 Requested [service.info["BrokerInfrastructure",state]]
        9360:20240629:134538.804 Requested [system.cpu.util]
        5264:20240629:134538.805 Sending back [0]
        9360:20240629:134538.806 In get_perf_counter_value() path:\Processore(_Total)\% Tempo processore interval:60
        9360:20240629:134538.807 End of get_perf_counter_value():SUCCEED
        9360:20240629:134538.808 Sending back [12.544073]
        7900:20240629:134539.008 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134539.009 End of send_buffer():SUCCEED
        192:20240629:134539.795 In collect_perfstat()
        192:20240629:134539.798 End of collect_perfstat()
        9360:20240629:134539.808 Requested [service.info["CoreMessagingRegistrar",state]]
        8976:20240629:134539.808 Requested [disco]
        9360:20240629:134539.809 Sending back [0]
        8976:20240629:134539.810 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        7900:20240629:134540.012 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134540.013 End of send_buffer():SUCCEED
        192:20240629:134540.799 In collect_perfstat()
        192:20240629:134540.802 End of collect_perfstat()
        5264:20240629:134540.812 Requested [disco]
        9360:20240629:134540.813 Requested [system.localtime]
        8976:20240629:134540.813 Requested [service.info["CryptSvc",state]]
        5264:20240629:134540.814 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        9360:20240629:134540.815 Sending back [1719661540]
        8976:20240629:134540.816 Sending back [0]
        7900:20240629:134541.015 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134541.016 End of send_buffer():SUCCEED
        192:20240629:134541.817 In collect_perfstat()
        9360:20240629:134541.818 Requested [disco]
        8976:20240629:134541.819 Requested [service.info["DcomLaunch",state]]
        9360:20240629:134541.820 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        192:20240629:134541.821 End of collect_perfstat()
        8976:20240629:134541.821 Sending back [0]
        7900:20240629:134542.018 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134542.018 End of send_buffer():SUCCEED
        7900:20240629:134542.019 In refresh_active_checks() host:'xx.xxx.xxx.xx' port:10051
        7900:20240629:134542.019 In zbx_connect_to_server() [xx.xxx.xxx.xx]:10051 [timeout:3, connection timeout:3]
        7900:20240629:134542.021 sending [{"request":"active checks","host":"WIN-xxxxxxxxx","config_revision":263,"session":"c47177 e92b320c9baac4b30d44bb9ca4"}]
        7900:20240629:134542.021 before read
        7900:20240629:134542.022 got [{"response":"success"}]
        7900:20240629:134542.022 In parse_list_of_checks()
        7900:20240629:134542.023 End of parse_list_of_checks():SUCCEED
        7900:20240629:134542.024 End of refresh_active_checks():SUCCEED
        7900:20240629:134542.024 In process_active_checks() server:'xx.xxx.xxx.xx' port:10051
        7900:20240629:134542.025 End of process_active_checks()
        7900:20240629:134542.025 In get_min_nextcheck()
        7900:20240629:134542.026 End of get_min_nextcheck():1719661563
        5264:20240629:134542.821 Requested [service.info["Dhcp",state]]
        5264:20240629:134542.822 Sending back [0]
        8976:20240629:134542.824 Requested [disco]
        8976:20240629:134542.824 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        192:20240629:134542.843 In collect_perfstat()
        192:20240629:134542.846 End of collect_perfstat()
        7900:20240629:134543.043 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134543.044 End of send_buffer():SUCCEED
        5264:20240629:134543.825 Requested [service.info["DiagTrack",state]]
        9360:20240629:134543.826 Requested [disco]
        5264:20240629:134543.827 Sending back [0]
        9360:20240629:134543.828 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        192:20240629:134543.861 In collect_perfstat()
        192:20240629:134543.864 End of collect_perfstat()
        7900:20240629:134544.046 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134544.047 End of send_buffer():SUCCEED
        5264:20240629:134544.830 Requested [disco]
        8976:20240629:134544.831 Requested [service.info["Dnscache",state]]
        5264:20240629:134544.832 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        9360:20240629:134544.832 Requested [system.swap.size[,total]]
        8976:20240629:134544.833 Sending back [0]
        9360:20240629:134544.834 Sending back [1607438336]
        192:20240629:134544.865 In collect_perfstat()
        192:20240629:134544.868 End of collect_perfstat()
        7900:20240629:134545.050 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134545.050 End of send_buffer():SUCCEED
        5264:20240629:134545.835 Requested [disco]
        5264:20240629:134545.836 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        9360:20240629:134545.837 Requested [service.info["DPS",state]]
        9360:20240629:134545.838 Sending back [0]
        192:20240629:134545.883 In collect_perfstat()
        192:20240629:134545.887 End of collect_perfstat()
        7900:20240629:134546.053 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134546.054 End of send_buffer():SUCCEED
        8976:20240629:134546.838 Requested [system.uptime]
        8976:20240629:134546.839 In perf_counter()
        8976:20240629:134546.840 In zbx_get_counter_name() pdhIndex:2
        8976:20240629:134546.841 End of zbx_get_counter_name():SUCCEED
        8976:20240629:134546.842 In zbx_get_counter_name() pdhIndex:674
        5264:20240629:134546.842 Requested [disco]
        8976:20240629:134546.843 End of zbx_get_counter_name():SUCCEED
        5264:20240629:134546.844 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        8976:20240629:134546.845 counter path converted to '\\WIN-xxxxxxxxx\Sistema\Tempo di funzionamento sistema'
        9360:20240629:134546.846 Requested [service.info["EventLog",state]]
        8976:20240629:134546.847 In get_perf_counter_value_by_path() path:\\WIN-xxxxxxxxx\Sistema\Tempo di funzionamento sistema interval:1 lang:0
        9360:20240629:134546.848 Sending back [0]
        8976:20240629:134546.849 End of get_perf_counter_value_by_path():SUCCEED
        8976:20240629:134546.850 End of perf_counter():SUCCEED
        8976:20240629:134546.850 Sending back [582638]
        192:20240629:134546.902 In collect_perfstat()
        192:20240629:134546.906 End of collect_perfstat()
        7900:20240629:134547.056 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134547.057 End of send_buffer():SUCCEED
        7900:20240629:134547.058 In refresh_active_checks() host:'xx.xxx.xxx.xx' port:10051
        7900:20240629:134547.059 In zbx_connect_to_server() [xx.xxx.xxx.xx]:10051 [timeout:3, connection timeout:3]
        7900:20240629:134547.060 sending [{"request":"active checks","host":"WIN-xxxxxxxxx","config_revision":263,"session":"c47177 e92b320c9baac4b30d44bb9ca4"}]
        7900:20240629:134547.061 before read
        7900:20240629:134547.062 got [{"response":"success"}]
        7900:20240629:134547.062 In parse_list_of_checks()
        7900:20240629:134547.063 End of parse_list_of_checks():SUCCEED
        7900:20240629:134547.064 End of refresh_active_checks():SUCCEED
        7900:20240629:134547.065 In process_active_checks() server:'xx.xxx.xxx.xx' port:10051
        7900:20240629:134547.065 End of process_active_checks()
        7900:20240629:134547.066 In get_min_nextcheck()
        7900:20240629:134547.067 End of get_min_nextcheck():1719661563
        5264:20240629:134547.848 Requested [service.info["EventSystem",state]]
        9360:20240629:134547.849 Requested [vfs.fs.get]
        8976:20240629:134547.850 Requested [disco]
        5264:20240629:134547.850 Sending back [0]
        9360:20240629:134547.851 In zbx_execute_threaded_metric() key:'vfs.fs.get'
        8976:20240629:134547.852 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        6608:20240629:134547.853 executing in data thread for key:'vfs.fs.get'
        6608:20240629:134547.857 get_fs_size_stat failed with error: Cannot obtain filesystem information: [0x00000015] Dispositivo non pronto.
        6608:20240629:134547.858 Cannot obtain filesystem information: [0x00000015] Dispositivo non pronto.
        9360:20240629:134547.859 End of zbx_execute_threaded_metric():SYSINFO_SUCCEED ''
        9360:20240629:134547.860 Sending back [[{"fsname":"C:","fstype":"NTFS","fslabel":"C","f sdr ivetype":"fixed","bytes":{"total":106728255488,"fr ee":91958751232,"used":14769504256,"pfree":86.16 15 80,"pused":13.838420}}]]
        192:20240629:134547.921 In collect_perfstat()
        192:20240629:134547.924 End of collect_perfstat()
        7900:20240629:134548.075 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134548.076 End of send_buffer():SUCCEED
        5264:20240629:134548.853 Requested [service.info["FontCache",state]]
        8976:20240629:134548.855 Requested [vm.memory.size[total]]
        5264:20240629:134548.856 Sending back [0]
        9360:20240629:134548.857 Requested [disco]
        8976:20240629:134548.857 Sending back [4288106496]
        9360:20240629:134548.858 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        192:20240629:134548.940 In collect_perfstat()
        192:20240629:134548.943 End of collect_perfstat()
        7900:20240629:134549.078 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134549.079 End of send_buffer():SUCCEED
        5264:20240629:134549.858 Requested [service.info["HarZabbix",state]]
        9360:20240629:134549.859 Requested [disco]
        5264:20240629:134549.860 Sending back [6]
        9360:20240629:134549.861 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        8976:20240629:134549.861 Requested [vm.memory.size[used]]
        8976:20240629:134549.862 Sending back [3896516608]
        192:20240629:134549.965 In collect_perfstat()
        192:20240629:134549.968 End of collect_perfstat()
        7900:20240629:134550.082 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134550.082 End of send_buffer():SUCCEED
        9360:20240629:134550.863 Requested [disco]
        5264:20240629:134550.864 Requested [service.info["IKEEXT",state]]
        9360:20240629:134550.865 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        5264:20240629:134550.865 Sending back [0]
        192:20240629:134550.984 In collect_perfstat()
        192:20240629:134550.987 End of collect_perfstat()
        7900:20240629:134551.085 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134551.085 End of send_buffer():SUCCEED
        8976:20240629:134551.865 Requested [service.info["iphlpsvc",state]]
        5264:20240629:134551.867 Requested [wmi.get[root/cimv2,"Select NumberOfLogicalProcessors from Win32_ComputerSystem"]]
        8976:20240629:134551.867 Sending back [0]
        9360:20240629:134551.868 Requested [disco]
        9360:20240629:134551.869 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        5264:20240629:134551.888 Sending back [4]
        192:20240629:134552.001 In collect_perfstat()
        192:20240629:134552.004 End of collect_perfstat()
        7900:20240629:134552.102 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134552.102 End of send_buffer():SUCCEED
        7900:20240629:134552.103 In refresh_active_checks() host:'xx.xxx.xxx.xx' port:10051
        7900:20240629:134552.104 In zbx_connect_to_server() [xx.xxx.xxx.xx]:10051 [timeout:3, connection timeout:3]
        7900:20240629:134552.105 sending [{"request":"active checks","host":"WIN-xxxxxxxxx","config_revision":263,"session":"c47177 e92b320c9baac4b30d44bb9ca4"}]
        7900:20240629:134552.106 before read
        7900:20240629:134552.106 got [{"response":"success"}]
        7900:20240629:134552.107 In parse_list_of_checks()
        7900:20240629:134552.108 End of parse_list_of_checks():SUCCEED
        7900:20240629:134552.108 End of refresh_active_checks():SUCCEED
        7900:20240629:134552.109 In process_active_checks() server:'xx.xxx.xxx.xx' port:10051
        7900:20240629:134552.110 End of process_active_checks()
        7900:20240629:134552.110 In get_min_nextcheck()
        7900:20240629:134552.111 End of get_min_nextcheck():1719661563
        9360:20240629:134552.869 Requested [service.info["LanmanServer",state]]
        5264:20240629:134552.870 Requested [wmi.getall[root\cimv2,"select Name,Description,NetConnectionID,Speed,AdapterType Id,NetConnectionStatus,GUID from win32_networkadapter where PhysicalAdapter=True and NetConnectionStatus>0"]]
        9360:20240629:134552.871 Sending back [0]
        8976:20240629:134552.872 Requested [disco]
        8976:20240629:134552.873 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        5264:20240629:134552.939 Sending back [[{"AdapterTypeId":0,"Description":"Red Hat VirtIO Ethernet Adapter","GUID":"{5025EE8E-A4E7-447E-A140-7BB1199FAEC5}","Name":"Red Hat VirtIO Ethernet Adapter","NetConnectionID":"Ethernet","NetConnecti onStatus":2,"Speed":"10000000000"}]]
        192:20240629:134553.020 In collect_perfstat()
        192:20240629:134553.023 End of collect_perfstat()
        7900:20240629:134553.120 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134553.121 End of send_buffer():SUCCEED
        8976:20240629:134553.874 Requested [service.info["LanmanWorkstation",state]]
        5264:20240629:134553.875 Requested [disco]
        8976:20240629:134553.876 Sending back [0]
        5264:20240629:134553.877 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        192:20240629:134554.039 In collect_perfstat()
        192:20240629:134554.041 End of collect_perfstat()
        7900:20240629:134554.123 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134554.124 End of send_buffer():SUCCEED
        9360:20240629:134554.878 Requested [disco]
        9360:20240629:134554.879 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        9360:20240629:134554.881 Requested [service.info["LSM",state]]
        9360:20240629:134554.882 Sending back [0]
        192:20240629:134555.057 In collect_perfstat()
        192:20240629:134555.059 End of collect_perfstat()
        7900:20240629:134555.125 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134555.126 End of send_buffer():SUCCEED
        8976:20240629:134555.881 Requested [service.info["mpssvc",state]]
        5264:20240629:134555.882 Requested [disco]
        8976:20240629:134555.883 Sending back [0]
        5264:20240629:134555.884 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        192:20240629:134556.082 In collect_perfstat()
        192:20240629:134556.085 End of collect_perfstat()
        7900:20240629:134556.128 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134556.129 End of send_buffer():SUCCEED
        9360:20240629:134556.888 Requested [disco]
        5264:20240629:134556.888 Requested [service.info["MSDTC",state]]
        9360:20240629:134556.889 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        5264:20240629:134556.890 Sending back [0]
        192:20240629:134557.101 In collect_perfstat()
        192:20240629:134557.104 End of collect_perfstat()
        7900:20240629:134557.132 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134557.133 End of send_buffer():SUCCEED
        7900:20240629:134557.133 In refresh_active_checks() host:'xx.xxx.xxx.xx' port:10051
        7900:20240629:134557.134 In zbx_connect_to_server() [xx.xxx.xxx.xx]:10051 [timeout:3, connection timeout:3]
        7900:20240629:134557.137 sending [{"request":"active checks","host":"WIN-xxxxxxxxx","config_revision":263,"session":"c47177 e92b320c9baac4b30d44bb9ca4"}]
        7900:20240629:134557.138 before read
        7900:20240629:134557.139 got [{"response":"success"}]
        7900:20240629:134557.139 In parse_list_of_checks()
        7900:20240629:134557.140 End of parse_list_of_checks():SUCCEED
        7900:20240629:134557.141 End of refresh_active_checks():SUCCEED
        7900:20240629:134557.142 In process_active_checks() server:'xx.xxx.xxx.xx' port:10051
        7900:20240629:134557.142 End of process_active_checks()
        7900:20240629:134557.143 In get_min_nextcheck()
        7900:20240629:134557.144 End of get_min_nextcheck():1719661563
        8976:20240629:134557.893 Requested [disco]
        8976:20240629:134557.894 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        8976:20240629:134557.895 Requested [service.info["MyServiceName",state]]
        8976:20240629:134557.896 Sending back [6]
        192:20240629:134558.120 In collect_perfstat()
        192:20240629:134558.123 End of collect_perfstat()
        7900:20240629:134558.151 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134558.152 End of send_buffer():SUCCEED
        9360:20240629:134558.898 Requested [disco]
        9360:20240629:134558.899 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        5264:20240629:134558.900 Requested [service.info["NlaSvc",state]]
        5264:20240629:134558.901 Sending back [0]
        192:20240629:134559.139 In collect_perfstat()
        192:20240629:134559.141 End of collect_perfstat()
        7900:20240629:134559.155 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134559.155 End of send_buffer():SUCCEED
        5264:20240629:134559.901 Requested [smart.disk.discovery]
        5264:20240629:134559.901 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        9360:20240629:134559.911 Requested [disco]
        8976:20240629:134559.911 Requested [service.info["nsi",state]]
        9360:20240629:134559.912 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        8976:20240629:134559.913 Sending back [0]
        7900:20240629:134600.159 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        192:20240629:134600.159 In collect_perfstat()
        7900:20240629:134600.160 End of send_buffer():SUCCEED
        192:20240629:134600.162 End of collect_perfstat()
        9360:20240629:134600.905 Requested [service.info["Power",state]]
        9360:20240629:134600.907 Sending back [0]
        8976:20240629:134600.909 Requested [disco]
        8976:20240629:134600.909 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        5264:20240629:134600.992 Requested [disco]
        5264:20240629:134600.993 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        5264:20240629:134600.994 Requested [service.info["ProfSvc",state]]
        5264:20240629:134600.995 Sending back [0]
        7900:20240629:134601.170 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        192:20240629:134601.171 In collect_perfstat()
        7900:20240629:134601.171 End of send_buffer():SUCCEED
        7900:20240629:134601.172 In send_heartbeat_msg()
        7900:20240629:134601.173 In zbx_connect_to_server() [xx.xxx.xxx.xx]:10051 [timeout:3, connection timeout:3]
        192:20240629:134601.174 End of collect_perfstat()
        7900:20240629:134601.175 sending [{"request":"active check heartbeat","host":"WIN-xxxxxxxxx","heartbeat_freq":60}]
        7900:20240629:134601.177 Out send_heartbeat_msg()
        7900:20240629:134602.189 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134602.190 End of send_buffer():SUCCEED
        7900:20240629:134602.190 In refresh_active_checks() host:'xx.xxx.xxx.xx' port:10051
        7900:20240629:134602.191 In zbx_connect_to_server() [xx.xxx.xxx.xx]:10051 [timeout:3, connection timeout:3]
        192:20240629:134602.193 In collect_perfstat()
        7900:20240629:134602.194 sending [{"request":"active checks","host":"WIN-xxxxxxxxx","config_revision":263,"session":"c47177 e92b320c9baac4b30d44bb9ca4"}]
        7900:20240629:134602.195 before read
        192:20240629:134602.197 End of collect_perfstat()
        7900:20240629:134602.199 got [{"response":"success"}]
        7900:20240629:134602.199 In parse_list_of_checks()
        7900:20240629:134602.200 End of parse_list_of_checks():SUCCEED
        7900:20240629:134602.201 End of refresh_active_checks():SUCCEED
        7900:20240629:134602.201 In process_active_checks() server:'xx.xxx.xxx.xx' port:10051
        7900:20240629:134602.202 End of process_active_checks()
        7900:20240629:134602.203 In get_min_nextcheck()
        7900:20240629:134602.204 End of get_min_nextcheck():1719661563
        8976:20240629:134602.916 Requested [disco]
        8976:20240629:134602.916 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
        9360:20240629:134602.918 Requested [service.info["QEMU-GA",state]]
        9360:20240629:134602.919 Sending back [0]
        192:20240629:134603.207 In collect_perfstat()
        7900:20240629:134603.209 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
        7900:20240629:134603.209 End of send_buffer():SUCCEED
        7900:20240629:134603.210 In process_active_checks() server:'xx.xxx.xxx.xx' port:10051
        192:20240629:134603.222 End of collect_perfstat()
        7900:20240629:134603.223 In initialize_eventlog6() source:'Security' previous lastlogsize:37277369
        7900:20240629:134603.224 In zbx_open_eventlog6() lastlogsize:37277369
        7900:20240629:134603.226 In get_eventlog6_id()
        7900:20240629:134603.227 End of get_eventlog6_id():SUCCEED id:49937112
        7900:20240629:134603.230 In get_eventlog6_id() zz0.cjr24xvqhtzz
        while in the file C:\Zabbix\zabbix_agentd.conf I have not configured anything as values ​​or variables for smartmontools

        Comment

        • Markku
          Senior Member
          Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
          • Sep 2018
          • 1781

          #5
          Unrelated to smart but I suggest removing item "disco" that is being requested every 1 second:

          8976:20240629:134602.916 Requested [disco]
          8976:20240629:134602.916 Sending back [ZBX_NOTSUPPORTED: Unsupported item key.]
          Anyway:

          10064:20240629:132949.477 Failed to execute command " type "C:\Program Files\smartmontools\bin\smartctl.exe"": Timeout while executing a shell script.
          Why does it try to execute command:

          type "C:\Program Files\smartmontools\bin\smartctl.exe"

          Markku

          Comment

          • mario_rossi
            Junior Member
            • Jun 2024
            • 15

            #6
            sorry, I didn't understand your answer, I'm not clear how to solve the problem.
            I followed the suggestion, although unrelated to smart, to disable the "disk" element which is requested every 1 second.

            My problem continues to exist
            Click image for larger version  Name:	image.png Views:	0 Size:	22.0 KB ID:	486697
            Click image for larger version

Name:	image.png
Views:	1851
Size:	26.2 KB
ID:	486698
            here is the latest log journal after your advice. There don't seem to be any errors but I still don't see the data in Zabbix. What should I do?

            9840:20240630:113447.662 Starting Zabbix Agent [WIN-xxxxxxxxx]. Zabbix 6.4.11 (revision fb6439a26e3).
            9840:20240630:113447.663 **** Enabled features ****
            9840:20240630:113447.664 IPv6 support: YES
            9840:20240630:113447.665 TLS support: NO
            9840:20240630:113447.666 **************************
            9840:20240630:113447.666 using configuration file: C:\Zabbix\zabbix_agentd.conf
            9840:20240630:113447.668 In init_collector_data()
            9840:20240630:113447.669 logical CPU count 4
            9840:20240630:113447.670 End of init_collector_data()
            9840:20240630:113447.682 In init_perf_collector()
            9840:20240630:113447.683 In zbx_init_builtin_counter_indexes()
            9840:20240630:113447.684 In zbx_get_all_counter_names()
            9840:20240630:113447.777 End of zbx_get_all_counter_names()
            9840:20240630:113447.975 End of zbx_init_builtin_counter_indexes():SUCCEED
            9840:20240630:113447.975 In set_object_names()
            9840:20240630:113448.250 In zbx_get_all_counter_names()
            9840:20240630:113448.254 End of zbx_get_all_counter_names()
            9840:20240630:113448.255 In zbx_get_all_counter_names()
            9840:20240630:113448.263 End of zbx_get_all_counter_names()
            9840:20240630:113448.315 End of set_object_names():SUCCEED
            9840:20240630:113448.315 End of init_perf_collector():SUCCEED
            9840:20240630:113448.316 agent #0 started [main process]
            2160:20240630:113448.317 agent #1 started [collector]
            9992:20240630:113448.318 agent #5 started [active checks #1]
            9676:20240630:113448.319 agent #3 started[listener #2]
            7616:20240630:113448.319 agent #4 started[listener #3]
            9420:20240630:113448.320 agent #2 started[listener #1]
            2160:20240630:113448.321 In init_cpu_collector()
            9992:20240630:113448.321 In init_active_metrics()
            7616:20240630:113448.322 Requested [system.swap.size[,total]]
            2160:20240630:113448.323 In zbx_get_counter_name() pdhIndex:238
            9992:20240630:113448.323 buffer: first allocation for 100 elements
            9676:20240630:113448.324 Requested [service.info["Dnscache",state]]
            7616:20240630:113448.325 Sending back [1954553856]
            2160:20240630:113448.326 End of zbx_get_counter_name():SUCCEED
            9992:20240630:113448.326 End of init_active_metrics()
            9676:20240630:113448.327 Sending back [0]
            2160:20240630:113448.328 In zbx_get_counter_name() pdhIndex:6
            9992:20240630:113448.329 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
            2160:20240630:113448.329 End of zbx_get_counter_name():SUCCEED
            9992:20240630:113448.330 End of send_buffer():SUCCEED
            2160:20240630:113448.331 4 CPUs and 1 processor group, using "Processor" counter
            9992:20240630:113448.331 In send_heartbeat_msg()
            2160:20240630:113448.332 In add_perf_counter() counter:'\Processore(_Total)\% Tempo processore' interval:900
            9992:20240630:113448.333 In zbx_connect_to_server() [xx.xxx.xxx.xx]:10051 [timeout:3, connection timeout:3]
            2160:20240630:113448.334 add_perf_counter(): PerfCounter '\Processore(_Total)\% Tempo processore' successfully added
            2160:20240630:113448.334 End of add_perf_counter(): SUCCEED
            2160:20240630:113448.335 In add_perf_counter() counter:'\Processore(0)\% Tempo processore' interval:900
            2160:20240630:113448.336 add_perf_counter(): PerfCounter '\Processore(0)\% Tempo processore' successfully added
            9992:20240630:113448.337 sending [{"request":"active check heartbeat","host":"WIN-xxxxxxxxxx","heartbeat_freq":60}]
            2160:20240630:113448.337 End of add_perf_counter(): SUCCEED
            9992:20240630:113448.338 Out send_heartbeat_msg()
            2160:20240630:113448.339 In add_perf_counter() counter:'\Processore(1)\% Tempo processore' interval:900
            9992:20240630:113448.339 In refresh_active_checks() host:'xx.xxx.xxx.xx' port:10051
            2160:20240630:113448.340 add_perf_counter(): PerfCounter '\Processore(1)\% Tempo processore' successfully added
            9992:20240630:113448.341 In zbx_connect_to_server() [xx.xxx.xxx.xx]:10051 [timeout:3, connection timeout:3]
            2160:20240630:113448.341 End of add_perf_counter(): SUCCEED
            9992:20240630:113448.342 sending [{"request":"active checks","host":"WIN-xxxxxxxxxxxxxxx","config_revision":0,"session":"4f 8072 3bf03d2aee0b16b755410c3ee8"}]
            2160:20240630:113448.343 In add_perf_counter() counter:'\Processore(2)\% Tempo processore' interval:900
            9992:20240630:113448.343 before read
            2160:20240630:113448.344 add_perf_counter(): PerfCounter '\Processore(2)\% Tempo processore' successfully added
            9992:20240630:113448.345 got [{"response":"success","config_revision":8055,"d ata ":[]}]
            2160:20240630:113448.346 End of add_perf_counter(): SUCCEED
            9992:20240630:113448.346 In parse_list_of_checks()
            2160:20240630:113448.347 In add_perf_counter() counter:'\Processore(3)\% Tempo processore' interval:900
            9992:20240630:113448.348 End of parse_list_of_checks():SUCCEED
            2160:20240630:113448.348 add_perf_counter(): PerfCounter '\Processore(3)\% Tempo processore' successfully added
            9992:20240630:113448.349 End of refresh_active_checks():SUCCEED
            2160:20240630:113448.350 End of add_perf_counter(): SUCCEED
            9992:20240630:113448.350 In process_active_checks() server:'xx.xxx.xxx.xx' port:10051
            2160:20240630:113448.351 In zbx_get_counter_name() pdhIndex:2
            9992:20240630:113448.352 End of process_active_checks()
            2160:20240630:113448.352 End of zbx_get_counter_name():SUCCEED
            9992:20240630:113448.353 In get_min_nextcheck()
            2160:20240630:113448.354 In zbx_get_counter_name() pdhIndex:44
            9992:20240630:113448.355 End of get_min_nextcheck():-1
            2160:20240630:113448.355 End of zbx_get_counter_name():SUCCEED
            2160:20240630:113448.356 In add_perf_counter() counter:'\Sistema\Lunghezza coda processore' interval:900
            2160:20240630:113448.358 add_perf_counter(): PerfCounter '\Sistema\Lunghezza coda processore' successfully added
            2160:20240630:113448.359 End of add_perf_counter(): SUCCEED
            2160:20240630:113448.359 End of init_cpu_collector():SUCCEED
            2160:20240630:113448.360 In collect_perfstat()
            2160:20240630:113448.362 End of collect_perfstat()
            9992:20240630:113449.358 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
            9992:20240630:113449.359 End of send_buffer():SUCCEED
            2160:20240630:113449.373 In collect_perfstat()
            2160:20240630:113449.376 End of collect_perfstat()
            9992:20240630:113450.361 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
            9992:20240630:113450.361 End of send_buffer():SUCCEED
            2160:20240630:113450.392 In collect_perfstat()
            2160:20240630:113450.394 End of collect_perfstat()
            9992:20240630:113451.364 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
            9992:20240630:113451.364 End of send_buffer():SUCCEED
            2160:20240630:113451.410 In collect_perfstat()
            2160:20240630:113451.413 End of collect_perfstat()
            9992:20240630:113452.367 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
            9992:20240630:113452.368 End of send_buffer():SUCCEED
            2160:20240630:113452.422 In collect_perfstat()
            2160:20240630:113452.425 End of collect_perfstat()
            9992:20240630:113453.370 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
            9992:20240630:113453.370 End of send_buffer():SUCCEED
            9992:20240630:113453.371 In refresh_active_checks() host:'xx.xxx.xxx.xx' port:10051
            9992:20240630:113453.372 In zbx_connect_to_server() [xx.xxx.xxx.xx]:10051 [timeout:3, connection timeout:3]
            9992:20240630:113453.373 sending [{"request":"active checks","host":"WIN-xxxxxxxx","config_revision":8055,"session":"4f8 0723bf03d2aee0b16b755410c3ee8"}]
            9992:20240630:113453.374 before read
            9992:20240630:113453.374 got [{"response":"success"}]
            9992:20240630:113453.375 In parse_list_of_checks()
            9992:20240630:113453.376 End of parse_list_of_checks():SUCCEED
            9992:20240630:113453.376 End of refresh_active_checks():SUCCEED
            9992:20240630:113453.377 In process_active_checks() server:'xx.xxx.xxx.xx' port:10051
            9992:20240630:113453.378 End of process_active_checks()
            9992:20240630:113453.378 In get_min_nextcheck()
            9992:20240630:113453.379 End of get_min_nextcheck():-1
            2160:20240630:113453.431 In collect_perfstat()
            2160:20240630:113453.434 End of collect_perfstat()
            9992:20240630:113454.388 In send_buffer() host:'xx.xxx.xxx.xx' port:10051 entries:0/100
            9992:20240630:113454.389 End of send_buffer():SUCCEED
            2160:20240630:113454.451 In collect_perfstat()
            2160:20240630:113454.453 End of collect_perfstat()
            here is my zabbix_agentd.conf file configuration
            # This is a configuration file for Zabbix agent service (Windows)
            # To get more information about Zabbix, visit http://www.zabbix.com

            ############ GENERAL PARAMETERS #################

            ### Option: LogType
            # Specifies where log messages are written to:
            # system - Windows event log
            # file - file specified with LogFile parameter
            # console - standard output
            #
            # Mandatory: no
            # Default:
            # LogType=file

            ### Option: LogFile
            # Log file name for LogType 'file' parameter.
            #
            # Mandatory: no
            # Default:
            # LogFile=

            LogFile=C:\Zabbix\zabbix_agentd.log

            ### Option: LogFileSize
            # Maximum size of log file in MB.
            # 0 - disable automatic log rotation.
            #
            # Mandatory: no
            # Range: 0-1024
            # Default:
            # LogFileSize=1

            ### Option: DebugLevel
            # Specifies debug level:
            # 0 - basic information about starting and stopping of Zabbix processes
            # 1 - critical information
            # 2 - error information
            # 3 - warnings
            # 4 - for debugging (produces lots of information)
            # 5 - extended debugging (produces even more information)
            #
            # Mandatory: no
            # Range: 0-5
            # Default:
            DebugLevel=4

            ### Option: SourceIP
            # Source IP address for outgoing connections.
            #
            # Mandatory: no
            # Default:
            # SourceIP=

            ### Option: AllowKey
            # Allow execution of item keys matching pattern.
            # Multiple keys matching rules may be defined in combination with DenyKey.
            # Key pattern is wildcard expression, which support "*" character to match any number of any characters in certain position. It might be used in both key name and key arguments.
            # Parameters are processed one by one according their appearance order.
            # If no AllowKey or DenyKey rules defined, all keys are allowed.
            #
            # Mandatory: no

            ### Option: DenyKey
            # Deny execution of items keys matching pattern.
            # Multiple keys matching rules may be defined in combination with AllowKey.
            # Key pattern is wildcard expression, which support "*" character to match any number of any characters in certain position. It might be used in both key name and key arguments.
            # Parameters are processed one by one according their appearance order.
            # If no AllowKey or DenyKey rules defined, all keys are allowed.
            # Unless another system.run[*] rule is specified DenyKey=system.run[*] is added by default.
            #
            # Mandatory: no
            # Default:
            # DenyKey=system.run[*]

            ### Option: EnableRemoteCommands - Deprecated, use AllowKey=system.run[*] or DenyKey=system.run[*] instead
            # Internal alias for AllowKey/DenyKey parameters depending on value:
            # 0 - DenyKey=system.run[*]
            # 1 - AllowKey=system.run[*]
            #
            # Mandatory: no

            ### Option: LogRemoteCommands
            # Enable logging of executed shell commands as warnings.
            # 0 - disabled
            # 1 - enabled
            #
            # Mandatory: no
            # Default:
            # LogRemoteCommands=0

            ##### Passive checks related

            ### Option: Server
            # List of comma delimited IP addresses, optionally in CIDR notation, or DNS names of Zabbix servers and Zabbix proxies.
            # Incoming connections will be accepted only from the hosts listed here.
            # If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally and '::/0' will allow any IPv4 or IPv6 address.
            # '0.0.0.0/0' can be used to allow any IPv4 address.
            # Example: Server=127.0.0.1,192.168.1.0/24,::1,2001:db8::/32,zabbix.domain
            #
            # Mandatory: yes, if StartAgents is not explicitly set to 0
            # Default:
            # Server=

            Server=xx.xxx.xxx.xx

            ### Option: ListenPort
            # Agent will listen on this port for connections from the server.
            #
            # Mandatory: no
            # Range: 1024-32767
            # Default:
            # ListenPort=10050

            ### Option: ListenIP
            # List of comma delimited IP addresses that the agent should listen on.
            # First IP address is sent to Zabbix server if connecting to it to retrieve list of active checks.
            #
            # Mandatory: no
            # Default:
            # ListenIP=0.0.0.0

            ### Option: StartAgents
            # Number of pre-forked instances of zabbix_agentd that process passive checks.
            # If set to 0, disables passive checks and the agent will not listen on any TCP port.
            #
            # Mandatory: no
            # Range: 0-100
            # Default:
            # StartAgents=3

            ##### Active checks related

            ### Option: ServerActive
            # Zabbix server/proxy address or cluster configuration to get active checks from.
            # Server/proxy address is IP address or DNS name and optional port separated by colon.
            # Cluster configuration is one or more server addresses separated by semicolon.
            # Multiple Zabbix servers/clusters and Zabbix proxies can be specified, separated by comma.
            # More than one Zabbix proxy should not be specified from each Zabbix server/cluster.
            # If Zabbix proxy is specified then Zabbix server/cluster for that proxy should not be specified.
            # Multiple comma-delimited addresses can be provided to use several independent Zabbix servers in parallel. Spaces are allowed.
            # If port is not specified, default port is used.
            # IPv6 addresses must be enclosed in square brackets if port for that host is specified.
            # If port is not specified, square brackets for IPv6 addresses are optional.
            # If this parameter is not specified, active checks are disabled.
            # Example for Zabbix proxy:
            # ServerActive=127.0.0.1:10051
            # Example for multiple servers:
            # ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
            # Example for high availability:
            # ServerActive=zabbix.cluster.node1;zabbix.cluster.n ode2:20051;zabbix.cluster.node3
            # Example for high availability with two clusters and one server:
            # ServerActive=zabbix.cluster.node1;zabbix.cluster.n ode2:20051,zabbix.cluster2.node1;zabbix.cluster2.n ode2,zabbix.domain
            #
            # Mandatory: no
            # Default:
            # ServerActive=

            ServerActive=xx.xxx.xxx.xx

            ### Option: Hostname
            # List of comma delimited unique, case sensitive hostnames.
            # Required for active checks and must match hostnames as configured on the server.
            # Value is acquired from HostnameItem if undefined.
            #
            # Mandatory: no
            # Default:
            # Hostname=

            Hostname=WIN-xxxxxxxxxxx

            ### Option: HostnameItem
            # Item used for generating Hostname if it is undefined. Ignored if Hostname is defined.
            # Does not support UserParameters or aliases.
            #
            # Mandatory: no
            # Default:
            HostnameItem=system.hostname

            ### Option: HostMetadata
            # Optional parameter that defines host metadata.
            # Host metadata is used at host auto-registration process.
            # An agent will issue an error and not start if the value is over limit of 2034 bytes.
            # If not defined, value will be acquired from HostMetadataItem.
            #
            # Mandatory: no
            # Range: 0-2034 bytes
            # Default:
            # HostMetadata=

            ### Option: HostMetadataItem
            # Optional parameter that defines an item used for getting host metadata.
            # Host metadata is used at host auto-registration process.
            # During an auto-registration request an agent will log a warning message if
            # the value returned by specified item is over limit of 65535 characters.
            # This option is only used when HostMetadata is not defined.
            #
            # Mandatory: no
            # Default:
            # HostMetadataItem=

            ### Option: HostInterface
            # Optional parameter that defines host interface.
            # Host interface is used at host auto-registration process.
            # An agent will issue an error and not start if the value is over limit of 255 characters.
            # If not defined, value will be acquired from HostInterfaceItem.
            #
            # Mandatory: no
            # Range: 0-255 characters
            # Default:
            # HostInterface=

            ### Option: HostInterfaceItem
            # Optional parameter that defines an item used for getting host interface.
            # Host interface is used at host auto-registration process.
            # During an auto-registration request an agent will log a warning message if
            # the value returned by specified item is over limit of 255 characters.
            # This option is only used when HostInterface is not defined.
            #
            # Mandatory: no
            # Default:
            # HostInterfaceItem=

            ### Option: RefreshActiveChecks
            # How often list of active checks is refreshed, in seconds.
            #
            # Mandatory: no
            # Range: 1-86400
            # Default:
            # RefreshActiveChecks=5

            ### Option: BufferSend
            # Do not keep data longer than N seconds in buffer.
            #
            # Mandatory: no
            # Range: 1-3600
            # Default:
            # BufferSend=5

            ### Option: BufferSize
            # Maximum number of values in a memory buffer. The agent will send
            # all collected data to Zabbix server or Proxy if the buffer is full.
            #
            # Mandatory: no
            # Range: 2-65535
            # Default:
            # BufferSize=100

            ### Option: MaxLinesPerSecond
            # Maximum number of new lines the agent will send per second to Zabbix Server
            # or Proxy processing 'log', 'logrt' and 'eventlog' active checks.
            # The provided value will be overridden by the parameter 'maxlines',
            # provided in 'log', 'logrt' or 'eventlog' item keys.
            #
            # Mandatory: no
            # Range: 1-1000
            # Default:
            # MaxLinesPerSecond=20

            ### Option: HeartbeatFrequency
            # Frequency of heartbeat messages in seconds.
            # Used for monitoring availability of active checks.
            # 0 - heartbeat messages disabled.
            #
            # Mandatory: no
            # Range: 0-3600
            # Default: 60
            # HeartbeatFrequency=

            ############ ADVANCED PARAMETERS #################

            ### Option: Alias
            # Sets an alias for an item key. It can be used to substitute long and complex item key with a smaller and simpler one.
            # Multiple Alias parameters may be present. Multiple parameters with the same Alias key are not allowed.
            # Different Alias keys may reference the same item key.
            # For example, to retrieve paging file usage in percents from the server:
            # Alias=pg_usageerf_counter[\Paging File(_Total)\% Usage]
            # Now shorthand key pg_usage may be used to retrieve data.
            # Aliases can be used in HostMetadataItem but not in HostnameItem or PerfCounter parameters.
            #
            # Mandatory: no
            # Range:
            # Default:

            ### Option: Timeout
            # Spend no more than Timeout seconds on processing.
            #
            # Mandatory: no
            # Range: 1-30
            # Default:
            # Timeout=3

            ### Option: PerfCounter
            # Syntax: <parameter_name>,"<perf_counter_path>",<period>
            # Defines new parameter <parameter_name> which is an average value for system performance counter <perf_counter_path> for the specified time period <period> (in seconds).
            # For example, if you wish to receive average number of processor interrupts per second for last minute, you can define new parameter "interrupts" as following:
            # PerfCounter = interrupts,"\Processor(0)\Interrupts/sec",60
            # Please note double quotes around performance counter path.
            # Samples for calculating average value will be taken every second.
            # You may run "typeperf -qx" to get list of all performance counters available in Windows.
            #
            # Mandatory: no
            # Range:
            # Default:

            ### Option: Include
            # You may include individual files in the configuration file.
            #
            # Mandatory: no
            # Default:
            # Include=

            # Include=c:\zabbix\zabbix_agentd.userparams.conf
            # Include=c:\zabbix\zabbix_agentd.conf.d\
            # Include=c:\zabbix\zabbix_agentd.conf.d\*.conf

            ####### USER-DEFINED MONITORED PARAMETERS #######

            ### Option: UnsafeUserParameters
            # Allow all characters to be passed in arguments to user-defined parameters.
            # The following characters are not allowed:
            # \ ' " ` * ? [ ] { } ~ $ ! & ; ( ) < > | # @
            # Additionally, newline characters are not allowed.
            # 0 - do not allow
            # 1 - allow
            #
            # Mandatory: no
            # Range: 0-1
            # Default:
            # UnsafeUserParameters=0

            ### Option: UserParameter
            # User-defined parameter to monitor. There can be several user-defined parameters.
            # Format: UserParameter=<key>,<shell command>
            #
            # Mandatory: no
            # Default:
            # UserParameter=

            ### Option: UserParameterDir
            # Directory to execute UserParameter commands from. Only one entry is allowed.
            # When executing UserParameter commands the agent will change the working directory to the one
            # specified in the UserParameterDir option.
            # This way UserParameter commands can be specified using the relative ./ prefix.
            #
            # Mandatory: no
            # Default:
            # UserParameterDir=

            ####### TLS-RELATED PARAMETERS #######

            ### Option: TLSConnect
            # How the agent should connect to server or proxy. Used for active checks.
            # Only one value can be specified:
            # unencrypted - connect without encryption
            # psk - connect using TLS and a pre-shared key
            # cert - connect using TLS and a certificate
            #
            # Mandatory: yes, if TLS certificate or PSK parameters are defined (even for 'unencrypted' connection)
            # Default:
            # TLSConnect=unencrypted

            ### Option: TLSAccept
            # What incoming connections to accept.
            # Multiple values can be specified, separated by comma:
            # unencrypted - accept connections without encryption
            # psk - accept connections secured with TLS and a pre-shared key
            # cert - accept connections secured with TLS and a certificate
            #
            # Mandatory: yes, if TLS certificate or PSK parameters are defined (even for 'unencrypted' connection)
            # Default:
            # TLSAccept=unencrypted

            ### Option: TLSCAFile
            # Full pathname of a file containing the top-level CA(s) certificates for
            # peer certificate verification.
            #
            # Mandatory: no
            # Default:
            # TLSCAFile=

            ### Option: TLSCRLFile
            # Full pathname of a file containing revoked certificates.
            #
            # Mandatory: no
            # Default:
            # TLSCRLFile=

            ### Option: TLSServerCertIssuer
            # Allowed server certificate issuer.
            #
            # Mandatory: no
            # Default:
            # TLSServerCertIssuer=

            ### Option: TLSServerCertSubject
            # Allowed server certificate subject.
            #
            # Mandatory: no
            # Default:
            # TLSServerCertSubject=

            ### Option: TLSCertFile
            # Full pathname of a file containing the agent certificate or certificate chain.
            #
            # Mandatory: no
            # Default:
            # TLSCertFile=

            ### Option: TLSKeyFile
            # Full pathname of a file containing the agent private key.
            #
            # Mandatory: no
            # Default:
            # TLSKeyFile=

            ### Option: TLSPSKIdentity
            # Unique, case sensitive string used to identify the pre-shared key.
            #
            # Mandatory: no
            # Default:
            # TLSPSKIdentity=

            ### Option: TLSPSKFile
            # Full pathname of a file containing the pre-shared key.
            #
            # Mandatory: no
            # Default:
            # TLSPSKFile=

            ####### For advanced users - TLS ciphersuite selection criteria #######

            ### Option: TLSCipherCert13
            # Cipher string for OpenSSL 1.1.1 or newer in TLS 1.3.
            # Override the default ciphersuite selection criteria for certificate-based encryption.
            #
            # Mandatory: no
            # Default:
            # TLSCipherCert13=

            ### Option: TLSCipherCert
            # GnuTLS priority string or OpenSSL (TLS 1.2) cipher string.
            # Override the default ciphersuite selection criteria for certificate-based encryption.
            # Example for GnuTLS:
            # NONE:+VERS-TLS1.2:+ECDHE-RSA:+RSA:+AES-128-GCM:+AES-128-CBC:+AEAD:+SHA256:+SHA1:+CURVE-ALL:+COMP-NULL:+SIGN-ALL:+CTYPE-X.509
            # Example for OpenSSL:
            # EECDH+aRSA+AES128:RSA+aRSA+AES128
            #
            # Mandatory: no
            # Default:
            # TLSCipherCert=

            ### Option: TLSCipherPSK13
            # Cipher string for OpenSSL 1.1.1 or newer in TLS 1.3.
            # Override the default ciphersuite selection criteria for PSK-based encryption.
            # Example:
            # TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA25 6
            #
            # Mandatory: no
            # Default:
            # TLSCipherPSK13=

            ### Option: TLSCipherPSK
            # GnuTLS priority string or OpenSSL (TLS 1.2) cipher string.
            # Override the default ciphersuite selection criteria for PSK-based encryption.
            # Example for GnuTLS:
            # NONE:+VERS-TLS1.2:+ECDHE-PSK:+PSK:+AES-128-GCM:+AES-128-CBC:+AEAD:+SHA256:+SHA1:+CURVE-ALL:+COMP-NULL:+SIGN-ALL
            # Example for OpenSSL:
            # kECDHEPSK+AES128:kPSK+AES128
            #
            # Mandatory: no
            # Default:
            # TLSCipherPSK=

            ### Option: TLSCipherAll13
            # Cipher string for OpenSSL 1.1.1 or newer in TLS 1.3.
            # Override the default ciphersuite selection criteria for certificate- and PSK-based encryption.
            # Example:
            # TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA25 6:TLS_AES_128_GCM_SHA256
            #
            # Mandatory: no
            # Default:
            # TLSCipherAll13=

            ### Option: TLSCipherAll
            # GnuTLS priority string or OpenSSL (TLS 1.2) cipher string.
            # Override the default ciphersuite selection criteria for certificate- and PSK-based encryption.
            # Example for GnuTLS:
            # NONE:+VERS-TLS1.2:+ECDHE-RSA:+RSA:+ECDHE-PSK:+PSK:+AES-128-GCM:+AES-128-CBC:+AEAD:+SHA256:+SHA1:+CURVE-ALL:+COMP-NULL:+SIGN-ALL:+CTYPE-X.509
            # Example for OpenSSL:
            # EECDH+aRSA+AES128:RSA+aRSA+AES128:kECDHEPSK+AES128 :kPSK+AES128
            #
            # Mandatory: no
            # Default:
            # TLSCipherAll=

            ####### For advanced users - TCP-related fine-tuning parameters #######

            ## Option: ListenBacklog
            # The maximum number of pending connections in the queue. This parameter is passed to
            # listen() function as argument 'backlog' (see "man listen").
            #
            # Mandatory: no
            # Range: 0 - INT_MAX (depends on system, too large values may be silently truncated to implementation-specified maximum)
            # Default: SOMAXCONN (hard-coded constant, depends on system)
            # ListenBacklog=

            #My variables
            UserParameter=tempcpu, type C:\OpenHardwareMonitor\temperature_hard_disk.txt
            UserParameter=disk.smart, type C:\Scripts\smartctl_status.log
            #UserParameter=disco, type "C:\Program Files\smartmontools\bin\smartctl.exe"
            #UserParameter=custom.smart.status[*], "C:\Program Files\smartmontools\bin\smartctl.exe" -a $1 | findstr /C:"SMART overall-health self-assessment test result"
            #UserParameter=custom.smart.temperature[*], "C:\Program Files\smartmontools\bin\smartctl.exe" -a $1 | findstr /C:"Temperature_Celsius"​
            configuration of the smartd.conf file
            Plugins.Smart.Path="C:\Program Files\smartmontools\bin\smartctl.exe"
            zabbix_agent -c "C:\Zabbix\zabbix_agentd.conf" -t smart.disk.get​
            What am I doing wrong in the configuration, please help me
            Last edited by mario_rossi; 30-06-2024, 11:52.

            Comment

            • Markku
              Senior Member
              Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
              • Sep 2018
              • 1781

              #7
              zabbix_agent -c "C:\Zabbix\zabbix_agentd.conf" -t smart.disk.get​
              That line does not belong to any configuration file.

              This line:

              9840:20240630:113447.662 Starting Zabbix Agent [WIN-xxxxxxxxx]. Zabbix 6.4.11 (revision fb6439a26e3).​
              says that you are using Zabbix agent, not Zabbix agent 2. Zabbix agent 2 is required for the SMART template.

              Markku

              Comment

              • mario_rossi
                Junior Member
                • Jun 2024
                • 15

                #8
                A thousand thanks! I think I'm close to the solution.
                I configured Agent 2 on my Windows machine and put in the file C:\Program Files\Zabbix Agent 2\zabbix_agent2.d\plugins.d\smart.conf

                Plugins.Smart.Path="C:\Program Files\smartmontools\bin\smartctl.exe"
                However, in Zabbix I receive an error

                Click image for larger version  Name:	image.png Views:	1 Size:	23.2 KB ID:	486703
                I also configured the environment variables for Path but nothing seems to resolve the error.

                Click image for larger version

Name:	image.png
Views:	1860
Size:	14.3 KB
ID:	486705

                if I run the command via cmd
                .\zabbix_agent2.exe -t smart.disk.get
                I get a json as response
                Click image for larger version  Name:	image.png Views:	1 Size:	74.3 KB ID:	486704

                ​smartctl is in the right place and from cmd I can use it without having started administrator mode. I read about inserting the string
                Plugins.Smart.Path="C:\Program Files\smartmontools\bin\smartctl.exe"
                in the zabbix_agent2.conf file but in my case I always get an error.

                Agent 2's log says
                2024/06/30 13:23:15.221301 Starting Zabbix Agent 2 (6.4.11)
                2024/06/30 13:23:15.266348 OpenSSL library (OpenSSL 3.0.11 19 Sep 2023) initialized
                2024/06/30 13:23:15.266348 default context ciphersuites: TLS_CHACHA20_POLY1305_SHA256 TLS_AES_128_GCM_SHA256 ECDHE-PSK-AES128-CBC-SHA256 ECDHE-PSK-AES128-CBC-SHA PSK-AES128-GCM-SHA256 PSK-AES128-CCM8 PSK-AES128-CCM PSK-AES128-CBC-SHA256 PSK-AES128-CBC-SHA
                2024/06/30 13:23:15.266348 psk context ciphersuites: TLS_CHACHA20_POLY1305_SHA256 TLS_AES_128_GCM_SHA256 ECDHE-PSK-AES128-CBC-SHA256 ECDHE-PSK-AES128-CBC-SHA PSK-AES128-GCM-SHA256 PSK-AES128-CCM8 PSK-AES128-CCM PSK-AES128-CBC-SHA256 PSK-AES128-CBC-SHA
                2024/06/30 13:23:15.267459 using configuration file: C:\Program Files\Zabbix Agent 2\zabbix_agent2.conf
                2024/06/30 13:23:15.267459 using plugin 'Agent' (built-in) providing following interfaces: exporter
                2024/06/30 13:23:15.267459 using plugin 'Ceph' (built-in) providing following interfaces: exporter, runner, configurator
                2024/06/30 13:23:15.267981 using plugin 'Cpu' (built-in) providing following interfaces: exporter, collector, runner
                2024/06/30 13:23:15.268029 using plugin 'DNS' (built-in) providing following interfaces: exporter
                2024/06/30 13:23:15.268029 using plugin 'File' (built-in) providing following interfaces: exporter, configurator
                2024/06/30 13:23:15.268029 using plugin 'Log' (built-in) providing following interfaces: exporter, configurator
                2024/06/30 13:23:15.268029 using plugin 'MQTT' (built-in) providing following interfaces: watcher, configurator
                2024/06/30 13:23:15.268029 using plugin 'Memcached' (built-in) providing following interfaces: exporter, runner, configurator
                2024/06/30 13:23:15.268555 using plugin 'Memory' (built-in) providing following interfaces: exporter
                2024/06/30 13:23:15.268578 using plugin 'Modbus' (built-in) providing following interfaces: exporter, configurator
                2024/06/30 13:23:15.268578 using plugin 'Mysql' (built-in) providing following interfaces: exporter, runner, configurator
                2024/06/30 13:23:15.268578 using plugin 'NetIf' (built-in) providing following interfaces: exporter
                2024/06/30 13:23:15.268578 using plugin 'Oracle' (built-in) providing following interfaces: exporter, runner, configurator
                2024/06/30 13:23:15.269089 using plugin 'Proc' (built-in) providing following interfaces: exporter
                2024/06/30 13:23:15.269129 using plugin 'Redis' (built-in) providing following interfaces: exporter, runner, configurator
                2024/06/30 13:23:15.269129 using plugin 'Registry' (built-in) providing following interfaces: exporter
                2024/06/30 13:23:15.269129 using plugin 'Smart' (built-in) providing following interfaces: exporter, configurator
                2024/06/30 13:23:15.269129 using plugin 'Sw' (built-in) providing following interfaces: exporter, configurator
                2024/06/30 13:23:15.269129 using plugin 'Swap' (built-in) providing following interfaces: exporter
                2024/06/30 13:23:15.269664 using plugin 'SystemRun' (built-in) providing following interfaces: exporter, configurator
                2024/06/30 13:23:15.269664 using plugin 'TCP' (built-in) providing following interfaces: exporter, configurator
                2024/06/30 13:23:15.269664 using plugin 'UDP' (built-in) providing following interfaces: exporter, configurator
                2024/06/30 13:23:15.269664 using plugin 'Uname' (built-in) providing following interfaces: exporter
                2024/06/30 13:23:15.269664 using plugin 'Uptime' (built-in) providing following interfaces: exporter
                2024/06/30 13:23:15.270209 using plugin 'Users' (built-in) providing following interfaces: exporter, configurator
                2024/06/30 13:23:15.270209 using plugin 'VFSDir' (built-in) providing following interfaces: exporter
                2024/06/30 13:23:15.270209 using plugin 'VMemory' (built-in) providing following interfaces: exporter
                2024/06/30 13:23:15.270209 using plugin 'VfsFs' (built-in) providing following interfaces: exporter
                2024/06/30 13:23:15.270209 using plugin 'WebCertificate' (built-in) providing following interfaces: exporter, configurator
                2024/06/30 13:23:15.270209 using plugin 'WebPage' (built-in) providing following interfaces: exporter, configurator
                2024/06/30 13:23:15.270758 using plugin 'WindowsEventlog' (built-in) providing following interfaces: exporter, configurator
                2024/06/30 13:23:15.270758 lowering the plugin WindowsPerfInstance capacity to 1 as the configured capacity 100 exceeds limits
                2024/06/30 13:23:15.270758 using plugin 'WindowsPerfInstance' (built-in) providing following interfaces: exporter
                2024/06/30 13:23:15.270758 using plugin 'WindowsPerfMon' (built-in) providing following interfaces: exporter, collector, runner
                2024/06/30 13:23:15.270758 using plugin 'WindowsServices' (built-in) providing following interfaces: exporter
                2024/06/30 13:23:15.270758 using plugin 'Wmi' (built-in) providing following interfaces: exporter
                2024/06/30 13:23:15.271302 using plugin 'ZabbixAsync' (built-in) providing following interfaces: exporter
                2024/06/30 13:23:15.271302 using plugin 'ZabbixStats' (built-in) providing following interfaces: exporter, configurator
                2024/06/30 13:23:15.271302 lowering the plugin ZabbixSync capacity to 1 as the configured capacity 100 exceeds limits
                2024/06/30 13:23:15.271302 using plugin 'ZabbixSync' (built-in) providing following interfaces: exporter
                2024/06/30 13:23:15.271847 [Modbus] Config is valid
                2024/06/30 13:23:15.769683 Plugin communication protocol version is 6.4.0
                2024/06/30 13:23:15.769683 Zabbix Agent2 hostname: [WIN-xxxxxxxxxx]
                2024/06/30 13:23:15.770239 starting manager
                2024/06/30 13:23:15.770239 [101] starting memory cache
                2024/06/30 13:23:15.770239 [101] starting server connector for [xx.xxx.xxx.xx:10051]
                2024/06/30 13:23:15.771866 [0] starting listener for '0.0.0.0:10050'
                2024/06/30 13:23:15.772090 listening for control connections on \\.\pipe\agent.sock
                2024/06/30 13:23:16.777629 [101] In refreshActiveChecks() from [xx.xxx.xxx.xx:10051]
                2024/06/30 13:23:16.789168 [101] End of refreshActiveChecks() from [xx.xxx.xxx.xx:10051]
                2024/06/30 13:23:16.789168 [101] In sendHeartbeatMsg() from [xx.xxx.xxx.xx:10051]
                2024/06/30 13:23:16.789684 [101] processing update request (1 requests)
                2024/06/30 13:23:16.789684 [101] registering new client
                2024/06/30 13:23:16.789918 [101] adding new request for key: 'smart.disk.discovery'
                2024/06/30 13:23:16.789918 [101] created exporter task for plugin 'Smart' itemid:48633 key 'smart.disk.discovery'
                2024/06/30 13:23:16.789918 [101] created configurator task for plugin Smart
                2024/06/30 13:23:16.790435 plugin Smart: executing configurator task
                2024/06/30 13:23:16.792853 [101] End of sendHeartBeatMsg() from [xx.xxx.xxx.xx:10051]
                Last edited by mario_rossi; 30-06-2024, 13:55.

                Comment

                • Markku
                  Senior Member
                  Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
                  • Sep 2018
                  • 1781

                  #9
                  Based on the "Cannot fetch data" error message, leave the quotes out of the smart.conf configuration.

                  Markku

                  Comment

                  • mario_rossi
                    Junior Member
                    • Jun 2024
                    • 15

                    #10
                    Unfortunately this did not solve my problem.
                    I always get error in Zabbix
                    Click image for larger version

Name:	image.png
Views:	1862
Size:	24.2 KB
ID:	486722
                    In the smart.conf file I wrote this

                    Plugins.Smart.Path=C:\Program Files\smartmontools\bin\smartctl.exe
                    but reading the error in Zabbix it seems that it cannot interpret the path of the smart.exe file. Maybe it's stuck in Program Files. I tried adding commas only in that part Plugins.Smart.Path=C:"Program Files"\smartmontools\bin\smartctl.exe but still gives an error in recognizing the Path.

                    Here is my log

                    2024/06/30 20:16:35.989245 Starting Zabbix Agent 2 (6.4.11)
                    2024/06/30 20:16:36.042362 OpenSSL library (OpenSSL 3.0.11 19 Sep 2023) initialized
                    2024/06/30 20:16:36.042362 default context ciphersuites: TLS_CHACHA20_POLY1305_SHA256 TLS_AES_128_GCM_SHA256 ECDHE-PSK-AES128-CBC-SHA256 ECDHE-PSK-AES128-CBC-SHA PSK-AES128-GCM-SHA256 PSK-AES128-CCM8 PSK-AES128-CCM PSK-AES128-CBC-SHA256 PSK-AES128-CBC-SHA
                    2024/06/30 20:16:36.042362 psk context ciphersuites: TLS_CHACHA20_POLY1305_SHA256 TLS_AES_128_GCM_SHA256 ECDHE-PSK-AES128-CBC-SHA256 ECDHE-PSK-AES128-CBC-SHA PSK-AES128-GCM-SHA256 PSK-AES128-CCM8 PSK-AES128-CCM PSK-AES128-CBC-SHA256 PSK-AES128-CBC-SHA
                    2024/06/30 20:16:36.043088 using configuration file: C:\Program Files\Zabbix Agent 2\zabbix_agent2.conf
                    2024/06/30 20:16:36.043689 using plugin 'Agent' (built-in) providing following interfaces: exporter
                    2024/06/30 20:16:36.043689 using plugin 'Ceph' (built-in) providing following interfaces: exporter, runner, configurator
                    2024/06/30 20:16:36.043689 using plugin 'Cpu' (built-in) providing following interfaces: exporter, collector, runner
                    2024/06/30 20:16:36.043689 using plugin 'DNS' (built-in) providing following interfaces: exporter
                    2024/06/30 20:16:36.044246 using plugin 'File' (built-in) providing following interfaces: exporter, configurator
                    2024/06/30 20:16:36.044246 using plugin 'Log' (built-in) providing following interfaces: exporter, configurator
                    2024/06/30 20:16:36.044246 using plugin 'MQTT' (built-in) providing following interfaces: watcher, configurator
                    2024/06/30 20:16:36.044246 using plugin 'Memcached' (built-in) providing following interfaces: exporter, runner, configurator
                    2024/06/30 20:16:36.044246 using plugin 'Memory' (built-in) providing following interfaces: exporter
                    2024/06/30 20:16:36.044246 using plugin 'Modbus' (built-in) providing following interfaces: exporter, configurator
                    2024/06/30 20:16:36.044782 using plugin 'Mysql' (built-in) providing following interfaces: exporter, runner, configurator
                    2024/06/30 20:16:36.044782 using plugin 'NetIf' (built-in) providing following interfaces: exporter
                    2024/06/30 20:16:36.044782 using plugin 'Oracle' (built-in) providing following interfaces: exporter, runner, configurator
                    2024/06/30 20:16:36.044782 using plugin 'Proc' (built-in) providing following interfaces: exporter
                    2024/06/30 20:16:36.044782 using plugin 'Redis' (built-in) providing following interfaces: exporter, runner, configurator
                    2024/06/30 20:16:36.045294 using plugin 'Registry' (built-in) providing following interfaces: exporter
                    2024/06/30 20:16:36.045330 using plugin 'Smart' (built-in) providing following interfaces: exporter, configurator
                    2024/06/30 20:16:36.045330 using plugin 'Sw' (built-in) providing following interfaces: exporter, configurator
                    2024/06/30 20:16:36.045330 using plugin 'Swap' (built-in) providing following interfaces: exporter
                    2024/06/30 20:16:36.045330 using plugin 'SystemRun' (built-in) providing following interfaces: exporter, configurator
                    2024/06/30 20:16:36.045330 using plugin 'TCP' (built-in) providing following interfaces: exporter, configurator
                    2024/06/30 20:16:36.045878 using plugin 'UDP' (built-in) providing following interfaces: exporter, configurator
                    2024/06/30 20:16:36.045878 using plugin 'Uname' (built-in) providing following interfaces: exporter
                    2024/06/30 20:16:36.045878 using plugin 'Uptime' (built-in) providing following interfaces: exporter
                    2024/06/30 20:16:36.045878 using plugin 'Users' (built-in) providing following interfaces: exporter, configurator
                    2024/06/30 20:16:36.045878 using plugin 'VFSDir' (built-in) providing following interfaces: exporter
                    2024/06/30 20:16:36.045878 using plugin 'VMemory' (built-in) providing following interfaces: exporter
                    2024/06/30 20:16:36.046431 using plugin 'VfsFs' (built-in) providing following interfaces: exporter
                    2024/06/30 20:16:36.046431 using plugin 'WebCertificate' (built-in) providing following interfaces: exporter, configurator
                    2024/06/30 20:16:36.046431 using plugin 'WebPage' (built-in) providing following interfaces: exporter, configurator
                    2024/06/30 20:16:36.046431 using plugin 'WindowsEventlog' (built-in) providing following interfaces: exporter, configurator
                    2024/06/30 20:16:36.046431 lowering the plugin WindowsPerfInstance capacity to 1 as the configured capacity 100 exceeds limits
                    2024/06/30 20:16:36.046978 using plugin 'WindowsPerfInstance' (built-in) providing following interfaces: exporter
                    2024/06/30 20:16:36.046978 using plugin 'WindowsPerfMon' (built-in) providing following interfaces: exporter, collector, runner
                    2024/06/30 20:16:36.046978 using plugin 'WindowsServices' (built-in) providing following interfaces: exporter
                    2024/06/30 20:16:36.046978 using plugin 'Wmi' (built-in) providing following interfaces: exporter
                    2024/06/30 20:16:36.046978 using plugin 'ZabbixAsync' (built-in) providing following interfaces: exporter
                    2024/06/30 20:16:36.046978 using plugin 'ZabbixStats' (built-in) providing following interfaces: exporter, configurator
                    2024/06/30 20:16:36.047520 lowering the plugin ZabbixSync capacity to 1 as the configured capacity 100 exceeds limits
                    2024/06/30 20:16:36.047520 using plugin 'ZabbixSync' (built-in) providing following interfaces: exporter
                    2024/06/30 20:16:36.047520 [Modbus] Config is valid
                    2024/06/30 20:16:36.486236 Plugin communication protocol version is 6.4.0
                    2024/06/30 20:16:36.486328 Zabbix Agent2 hostname: [WIN-xxxxxxxxx]
                    2024/06/30 20:16:36.486328 starting manager
                    2024/06/30 20:16:36.486839 [101] starting memory cache
                    2024/06/30 20:16:36.486994 [101] starting server connector for [xx.xxx.xxx.xx:10051]
                    2024/06/30 20:16:36.488124 [0] starting listener for '0.0.0.0:10050'
                    2024/06/30 20:16:36.488124 listening for control connections on \\.\pipe\agent.sock
                    2024/06/30 20:16:37.500803 [101] In refreshActiveChecks() from [xx.xxx.xxx.xx:10051]
                    2024/06/30 20:16:37.503851 [101] End of refreshActiveChecks() from [xx.xxx.xxx.xx:10051]
                    2024/06/30 20:16:37.503851 [101] In sendHeartbeatMsg() from [xx.xxx.xxx.xx:10051]
                    2024/06/30 20:16:37.504722 [101] processing update request (1 requests)
                    2024/06/30 20:16:37.504722 [101] registering new client
                    2024/06/30 20:16:37.504722 [101] adding new request for key: 'eventlog[Security,,,,^4625,,skip]'
                    2024/06/30 20:16:37.505240 [101] created exporter task for plugin 'WindowsEventlog' itemid:47481 key 'eventlog[Security,,,,^4625,,skip]'
                    2024/06/30 20:16:37.505240 [101] created configurator task for plugin WindowsEventlog
                    2024/06/30 20:16:37.505240 plugin WindowsEventlog: executing configurator task
                    2024/06/30 20:16:37.507634 [101] End of sendHeartBeatMsg() from [xx.xxx.xxx.xx:10051]​

                    Comment

                    • mario_rossi
                      Junior Member
                      • Jun 2024
                      • 15

                      #11
                      Hi,
                      shared the solution. I solved my problem by placing this string in the smart.conf file. Spaces or quotation marks are not well accepted.

                      Plugins.Smart.Path=C:\PROGRA~1\smartmontools\bin\smartctl.exe
                      PROGRA~1 refers to the Program Files folder in Windows. Check if the path is correct using the cmd. Something in your Windows configuration may be different. The command to look at your folders in Program Files is

                      cd C:\Program Files
                      dir /x
                      you should get a similar list

                      Click image for larger version

Name:	image.png
Views:	1872
Size:	63.0 KB
ID:	486864​​

                      Comment


                      • rster
                        rster commented
                        Editing a comment
                        Sir, you are a genius.
                        Many thanks!
                    Working...