[ZBX-22591] Error on start agent2 for windows as service Created: 2023 Mar 27 Updated: 2024 Jan 31 |
|
Status: | Open |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 6.2.7 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Trivial |
Reporter: | Dmitry Khenkin | Assignee: | Victor Breda Credidio |
Resolution: | Unresolved | Votes: | 1 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Windows systems |
Attachments: |
![]() ![]() |
Description |
Steps to reproduce:
Result: On version 6.2.7+: Have a crash on start windows service on some Windows systems. I can't detect any depends from Windows version, but all problem hosts are server's platform. Change service start mode from Automatic to Automatic (delay) have no effect. Agnet2 started correctly when I try to start it as interactive program, not as service. Agent2 version 6.2.6 and lowest started correctly as service too. This type of setting I use for get full hostname as "host1.contoso.com" on Windows systems. |
Comments |
Comment by Victor Breda Credidio [ 2023 Mar 31 ] |
Hi Dmitry. I was not able to reproduce, but once again, as you said, it seems to be happening only with Windows Servers
Could you please check if you are able to execute the command manually? You mentioned that version 6.2.6 was alright. Best regards, |
Comment by Dmitry Khenkin [ 2023 Mar 31 ] |
Hi Victor. > Could you please check if you are able to execute the command manually? Yes, I wrote than I can start zabbix-egent2 manually as program. Agent started normally. And sent full hostname to server. And I got error when I try to start Service Zabbix Agent2 manually. > Could you try to check how your environment behaves while running Zabbix agent 2 version 6.2.9? I tried to test 6.2.9 and all work correctly. Oddly enough - I checked the problematic hosts today and couldn't reproduce the bug on 6.4.0. Although 25.03 the problem was reproduced 100%. I installed on all problematic hosts 6.2.6 after detected issue and reinstalled 6.4.0 for test today. I don't remember what version was installed on that hosts before my experiments at 25.03. |
Comment by Dmitry Khenkin [ 2023 Apr 05 ] |
Hi Victor. I found problem host. It's Win SRV 2012 Standard Version 6.2 ( Build 9200 ) First try - run as service with error. Second try : run as program from explorer. Started normally. ( 2023/04/05 21:58:51.777323 Starting Zabbix Agent 2 (6.2.9) )
Version 6.2.6 started normally as service . Log below
|
Comment by Dmitry Khenkin [ 2023 Apr 06 ] |
Hi Victor. I try to change conflict command in conf file for Agent2 Old parameters:
HostnameItem=system.run["powershell.exe -NoProfile -ExecutionPolicy Bypass -NonInteractive [System.Net.Dns]::GetHostByName(($env:computerName)).Hostname.ToLower()"]
New parameters:
HostnameItem=system.run["echo TTT.TTT"]
And I get same effect. |
Comment by Dmitry Khenkin [ 2023 Apr 06 ] |
sorry, I remember that bellow if set HostnameItem=system.hostname all started is fine. Problem in construction |
Comment by Allen Sabernick [ 2024 Jan 31 ] |
Did you ever find a solution? We are on agent 5.0.40, same issue, Windows Server 2022. One thing I see in common, all the hosts having issues are MS Exchange Servers. Any thoughts? |