Ad Widget

Collapse

zabbix_agentd 2.0 on win2k problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kunajn
    Junior Member
    • Jan 2012
    • 7

    #1

    zabbix_agentd 2.0 on win2k problem

    Hello,

    I have problem with using ( and installing ) zabbix_agentd 2.0 on win2k SP4. When I try to run zabbix_agentd.exe I get popup window with message: "The procedure entry point DnsFree could not be located in the dynamic link library DNSAPI.dll."

    I found this information ( however I'm not sure if it has anything to do with my problem ):

    http://msdn.microsoft.com/en-us/libr...(v=vs.85).aspx describing DnsFree function says:

    Minimum supported client Windows XP
    Minimum supported server Windows Server 2003

    Does this mean that zabbix_agentd won't work on Windows Server below 2k3? Zabbix documentation says that version 2.0 needs win2k and above...

    br,
    Kamil
  • HullZabbix
    Senior Member
    • Feb 2011
    • 104

    #2
    I've also just discovered this problem.

    Had our 2000 servers working on 1.8.13 but exactly the same problems as you using 2.0 agents.

    Comment

    • HullZabbix
      Senior Member
      • Feb 2011
      • 104

      #3
      OK, after a little more digging.

      2000 is no longer supported. A few other legacy programs have suffered the same fate.

      The link you found definitely relates to the problem.

      It looks like we're out of luck

      The manual/release notes should probably be modified to reflect the changes

      Comment

      • BrendanG
        Junior Member
        • Nov 2006
        • 18

        #4
        Sad news. Unfortunately we still have many reliable Win2K systems. It would be great to take advantage of some of the new 2.0 agent features. Anyone know if this DnsFree bug is the only bug for 2.0 agents on Windows 2000?

        Comment

        • BrendanG
          Junior Member
          • Nov 2006
          • 18

          #5
          Probable solution

          This is certainly testing my CS knowledge, as I am by no means a programmer, but I think I have a probable solution for the 2.0 Agent Windows 2000 problem.

          The short answer is we need to inform the Windows SDK header files what minimum OS we want to target. The problem is the dnsapi library provided by windns.h.

          You do this by setting the _WIN32_WINNT symbol at compile time to 0x0500 (_WIN32_WINNT_WIN2K). These modifications are done to the build\win32\project\Makefile_agent file. I tried adding it as another /D flag to the CFLAGS macro, but that gets applied to all compilations and I then had a compile error with the system.c library. Instead I added
          Code:
          /D "_WIN32_WINNT=0x0500"
          to the end of the net.o compile command (line 103 in Makefile_agent).
          I then compiled via VS 2008 command prompt and installed the resulting zabbix_agentd.exe on Windows 2000 SP4 successfully.
          I reported this bug and solution here ZBX-5103

          I am by no means a programmer and defer to those more knowledgable than me to determine if this is the correct solution. I have not tested all functions of the agent on Windows 2000 so there may certainly be other bugs with it.

          Comment

          Working...