[ZBX-20907] agent service terminated Created: 2022 Apr 18  Updated: 2023 Mar 29  Resolved: 2023 Mar 29

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 5.0.22
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Karlo Roberto Torio Assignee: Aigars Kadikis
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MS Windows Server 2019 Standard

(more details in screenshot "System Information"


Attachments: PNG File System Information.png     PNG File Timestamp1.png     PNG File Timestamp2.png     Zip Archive zabbix_agent2.zip    

 Description   

Steps to reproduce:

  1. install zabbix agent 2 on windows host
  2. configured Hostname, Server and Server Active
  3. start zabbix agent 2 service

Result:
See screenshots: Timestamp1 and Timestamp2

See log file: zabbix_agent2.log

Expected:
Agent 2 service should continue to run



 Comments   
Comment by Karlo Roberto Torio [ 2022 Apr 18 ]

Hi, why is 5.0.16 not supported?

And why I can't set the priority to any value except trivial?

Agent 2 service shutdown is supposed to be critical

Comment by Aigars Kadikis [ 2022 Apr 19 ]

Thank you for the ticket.

Hi, why is 5.0.16 not supported?

5.0 branch is very supported. It's an LTS version!

In agent log, I do not see a graceful shutdown. Before the second start, we can see its using performance counter plugin -  WindowsPerfMon:

2022/03/29 04:00:07.452336 plugin Cpu: executing collector task
2022/03/29 04:00:07.452336 plugin WindowsPerfMon: executing collector task
2022/03/29 04:01:08.155685 Starting Zabbix Agent 2 []. (5.0.16)
2022/03/29 04:01:08.156678 OpenSSL library (OpenSSL 1.1.1k  25 Mar 2021) initialized 

Regarding performance counters, there are known and fixed issues. See ZBX-20204 and ZBX-20269.

Please upgrade agent2 to 5.0.22. You can stop service, replace zabbix_agent2.exe with the one from:

https://cdn.zabbix.com/zabbix/binaries/stable/5.0/5.0.22/zabbix_agent2-5.0.22-windows-amd64-openssl-static.zip

Start service.

Let us know if the issue repeats. If it repeats, attach a new log.

Comment by Karlo Roberto Torio [ 2022 Apr 20 ]

Hi,

The fixed issues does not indicate why the performance counters cause the agent2 to terminate unexpectedly.

Is it overwhelming the service?

Comment by Karlo Roberto Torio [ 2022 Apr 22 ]

I was told that we cannot upgrade to 5.0.22 because we are also restricted to using zabbix server 5.0.16 

Comment by Aigars Kadikis [ 2022 Apr 25 ]

The fixed issues does not indicate why the performance counters cause the agent2 to terminate unexpectedly.

Is it overwhelming the service?

I cannot confirm or deny that, but the patches were related to performance counters. We can help you if you encounter the problem with resent LTS release.

Zabbix server v5.0.16 is compatible with Zabbix agent2 v5.0.22. You can use newer agents as long as it's on same major version - 5.0.x.

Comment by Vladislavs Sokurenko [ 2022 May 10 ]

ZBX-20378 might be related

Comment by Aigars Kadikis [ 2023 Mar 14 ]

There are improvements (ZBX-20356) starting with zabbix_agent2 5.0.31, 6.0.13. Could you test these versions and confirm the issue exists or went away?

Generated at Sun Jun 15 13:35:52 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.