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:
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?
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
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?
Comment