Ad Widget

Collapse

Agent2 + HDD SMART + Win7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zakaso123
    Junior Member
    • Jul 2024
    • 4

    #1

    Agent2 + HDD SMART + Win7

    I need to control hdd, ssd status by smart on hosts running Win7 (Win2008R2) OS. The solution offered by zabbix is ​based on agent2.

    Starting from version 6.4.13, agent2 (msi, zip distributions, with or without encryption) does not support Win 7 OS (Win10 only). As I understand it, this is due to the Go compiler (from version 1.21 only supports Windows 10)
    Well, OK, I installed 6.4.12, another problem appeared - when agent2 tries to parse a string like “/dev/csmi0,2” (received from smartctl), it crashes! I found this problem in issues (there is a bug in the regular expression template - a comma was not added), it has already been fixed, but apparently in versions newer than 6.4.12.
    Such a problem - I can’t use the old version of the agent because of a problem in the code, and the new version too, because the win7 OS is not supported...

    I tried to compile zabbix from sources (branch 6.4) according to the manual: when compiling zabbix sources, an error occurred - the header file pcre.h was not found (I did not find it in the pcre and pcre2 archives).

    Is it worth trying to build zabbix from current sources with an old version of the Go compiler or not?
    Or forget about agent2 and use the first (non-Go) version, write shell scripts to obtain data (configs with UserParameters, templates, etc.)?

    The option using the first agent + smartctl (smartmontools) and obtaining data using shell (powershell) scripts is possible, but I wanted to get it out of the box)), and agent2 has a some of important features for me...​
  • zakaso123
    Junior Member
    • Jul 2024
    • 4

    #2
    Will answer to myself...
    I was able to build Zabbix Agent2 6.4.16 with Go compiler version 1.20..
    It now works fine on Win7/2008R2(x64) (no more exceptions)!
    Was build using CMake and MinGW on Win10 21H2.
    Versions:
    mingw-x86_64-8.1.0-release-win32-sjlj-rt_v6-rev0
    cmake-3.30.0-windows-x86_64
    go1.20.14.windows-amd64
    pcre2-10.44
    zabbix sources 6.4.16(17)
    without OpenSSL (compiled without OPENSSL=c:\dev\openssl)

    Comment

    Working...