Ad Widget

Collapse

Zabbix Agent Installer for Windows (W32 & w64)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vrolok
    Junior Member
    • Jan 2011
    • 22

    #76
    Agent Update

    Hi to all,
    Maybe for someone it is going to be helpful. I have ~150 windows servers with the zabbix agents on them & when a new version came out I just use binaries form an official website and distribute them among all windows machines.
    You will need psexec, a shared folder, use this code to create a batch file:
    Code:
    @echo off
    
    echo Updating Agent
    
    echo Mapping Shared Drive B:
    
    net use b: \\destination\to\zabbix_binaries
    set FilePath32="B:\win32"
    set FilePath64="B:\win64"
    if exist "C:\Program Files (x86)" (
      set FilePath=%FilePath64%
      ) else (
    	  set FilePath=%FilePath32%
    	  )
    if exist "C:\Program Files (x86)" (
    	cd "C:\Program Files (x86)\Zabbix Agent"
    	) else (
    		cd "C:\Program Files\Zabbix Agent"
    		)
    
    
    net stop "Zabbix Agent"
    
    ECHO Copying Files
    xcopy /F /Y /R %FilePath%
    
    net use b: /delete
    
    ECHO Start The Zabbix Agent Service
    net start "Zabbix Agent"
    
    ECHO Finish
    Change \\destination\to\zabbix_binaries to yours.

    And then RUN psexec @C:\server_list.txt -u username -p password /c C:\batch_file.bat

    This method works only if you have already an agent installed on the system.

    How you update agents in your environment?
    Last edited by vrolok; 02-06-2011, 14:15.

    Comment

    • scotty
      Senior Member
      • Oct 2006
      • 126

      #77
      Hi everybody

      I am back, sorry for the delay ,

      You will find the las installer:

      Comment

      • ghoz
        Senior Member
        • May 2011
        • 204

        #78
        64bits install

        Hi,
        I have some troubles with the installer from suiviperf on 64bits windows.

        for whatever reason, it keeps installing a 32bits version in program files (x86).


        I tried on a 2008R2 and on a 2003 64bits, but i keep getting the 32bits version installed.

        any clues ?

        Is there a specific switch to force 64bit install ?

        Thanks...

        Comment

        • scotty
          Senior Member
          • Oct 2006
          • 126

          #79
          I've been told, the installation is on the 32bits program file ( program files (x86)) but it should be 64bit version.

          it is not a titanium processor ?

          could you please give me the version of the package

          Comment

          • ghoz
            Senior Member
            • May 2011
            • 204

            #80
            I'm using the latest installer for 1.8.7
            The CPU is an intel xeon, AMD-64 compatible, no itanium in sight.
            OS is windows 2003 R2 x64.

            using the installer, the binary is installed in program files (x86), and is the 32bit version :
            Code:
            [admin@zabbix ~]$ zabbix_get  -s x.x.x.x -k system.uname
            Windows HOSTNAME 5.2.3790 Windows Server 2003 Service Pack 2 Intel IA-32
            manually starting the 64bit binary, I get :
            Code:
            [admin@zabbix ~]$ zabbix_get  -s x.x.x.x -k system.uname
            Windows HOSTNAME 5.2.3790 Windows Server 2003 Service Pack 2 AMD-64

            Comment

            • scotty
              Senior Member
              • Oct 2006
              • 126

              #81
              I tried on a "inter cote I5 CPU M520" and the installation was badly made on "C:\Program Files (x86)\Zabbix Agent" but the agent installed was well the 64b. the mechanism to detect 32 or 64B seems not working for your CPU.

              I used a mechanism that determin if the OS is 64b. I changed this part can I send it directly to you to try ?

              Comment

              • ghoz
                Senior Member
                • May 2011
                • 204

                #82
                Doh...
                I can test it, but it worked the way you said : 64bit exe in 32bit program files...

                I cant' reproduce the problem after deinstalling/ reinstalling from scratch the latest version ... on 3 different system ( different CPU, mix of 2008R2 and 2003 x64) ...

                I don't understand how I got the wrong results in the first place ...

                Anyway... send the link in PM if you still want me to test your new detection mechanism...

                on an somehow related note, I'd suggest making the upgrade keep the zabbix.conf ,
                or add a flag to the uninstaller to keep the config file (and the installer to skip the confg file creation) ?

                Right now the upgrade / reinstall destroys the painfully crafted zabbix.conf :-)
                Last edited by ghoz; 13-10-2011, 12:29. Reason: tyop

                Comment

                • scotty
                  Senior Member
                  • Oct 2006
                  • 126

                  #83
                  Zabbix Agent Installer for Windows (W32 & w64)

                  Hi,

                  You will find the zabbix Agent update from the 1.8.8 source code


                  You will find it following this link:


                  Enjoy it

                  Comment

                  • scotty
                    Senior Member
                    • Oct 2006
                    • 126

                    #84
                    Windows installer

                    I Created MSI package for the installer

                    You will find it following this link:


                    Enjoy it

                    Comment

                    • brian
                      Member
                      • Dec 2009
                      • 45

                      #85
                      Thanks for the MSI

                      Dear Scotty,

                      Thanks a lot for the msi package, I am sure it will help a lot of administrators distributing the agent.

                      Comment

                      • scotty
                        Senior Member
                        • Oct 2006
                        • 126

                        #86
                        Thanks, I hope so

                        Comment

                        • scotty
                          Senior Member
                          • Oct 2006
                          • 126

                          #87
                          I updated the MSI package that have a bug passing values to the zabbix_agentd.conf file

                          Comment

                          • scotty
                            Senior Member
                            • Oct 2006
                            • 126

                            #88
                            Zabbix Agent Installer for Windows (W32 & w64)

                            you will find the new 32 & 64 bits zabbix Agent installer (nsis and msi packages) update from the 1.8.9 source code

                            You will find them following this link

                            Comment

                            • scotty
                              Senior Member
                              • Oct 2006
                              • 126

                              #89
                              New update

                              The installer Version for zabbix 1.8.10 is ready :

                              Comment

                              • cheezus
                                Member
                                • Nov 2011
                                • 35

                                #90
                                Awesome! Thanks

                                Comment

                                Working...