[ZBX-19940] Zabbix Agent 2 Crash (Windows) Created: 2021 Sep 10  Updated: 2021 Nov 25  Resolved: 2021 Oct 06

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

Type: Problem report Priority: Trivial
Reporter: Nathan Slusher Assignee: Karlis Salins
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Microsoft Windows Web Server 2008 R2
Zabbix Agent 2 5.4.4 (amd64)


Attachments: PNG File Agent crash 20210912.png     PNG File Agent crash 20210916.png     PNG File Event Viewer 20210916.png     PNG File Event Viewer.png     PNG File image-2021-09-29-13-30-16-806.png     File production_agent2.conf     Text File zabbix_agent2.log     Text File zabbix_agent2_crash_20210912.log     Text File zabbix_agent2_crash_20210916.log    
Issue Links:
Duplicate
duplicates ZBX-19595 ZabbixAgent2 crashes when certain WQL... Closed

 Description   

Steps to reproduce:

  1. Start Zabbix Agent 2
  2. The agent will crash seemingly at random with no error in the logs.

Result:
See attached logfile and screenshot.

DebugLevel was set to 5 in the agent config for the attached log.
Expected:
I would expect some sort of error to be produced in the log that explains why the agent is crashing.

 

 



 Comments   
Comment by Alexey Pustovalov [ 2021 Sep 10 ]

It looks like you forgot to attach configuration and log file. Could you attach them?

Comment by Nathan Slusher [ 2021 Sep 10 ]

Alexey,

I attached the agent conf file. The log was already attached.

Comment by Alexey Pustovalov [ 2021 Sep 10 ]

the log file contain only ~10 seconds, it does not contain restart / crash or any other unexpected behaviour messages. Just normal operating...

Comment by Nathan Slusher [ 2021 Sep 10 ]

Alexey,

I did not include the entire log as I did not think it would be relevant.

it does not contain restart / crash or any other unexpected behaviour messages. Just normal operating...

You are correct. The agent is crashing without outputting any errors to the log which is not expected behavior.

Do you have any thoughts on how I can troubleshoot this?

Thank you

Comment by Alexey Pustovalov [ 2021 Sep 14 ]

The first of all we need to check Zabbix agent log file for the same time period when issue happened.

Comment by Nathan Slusher [ 2021 Sep 14 ]

Alexey,

I have attached a picture of the Zabbix problem for another agent crash that happened around 15:00 on Monday 9/12. I also attached the log file for that time period. There are no errors in the log file to indicate why the agent crashed.

Comment by Alexey Pustovalov [ 2021 Sep 14 ]

The log file does not contain the same time period when you had problem. Log file is stopped at 15:00:42.

Comment by Nathan Slusher [ 2021 Sep 14 ]

That is correct. The crash happened around that time. You can see it in the Zabbix problem picture: Agent crash 20210912.png

Comment by Alexey Pustovalov [ 2021 Sep 15 ]

So it just stopped and does not write anything to the log file anymore? I do not see restart.

Comment by Nathan Slusher [ 2021 Sep 15 ]

Yes, it crashes and does not write any errors to the log. We don't have the 'Zabbix Agent 2' service set up to restart on failure.

Comment by Nathan Slusher [ 2021 Sep 17 ]

I added another log file and picture for an agent crash that happened today.

Comment by Alexey Pustovalov [ 2021 Sep 17 ]

Thank you! Do you see the same information in Event Viewer? May I ask you to attach details of the crash event?

Comment by Nathan Slusher [ 2021 Sep 17 ]

I attached zabbix_agent2_crash_20210916.log and a picture of the event viewer for the crash.

Comment by Nathan Slusher [ 2021 Sep 21 ]

Here is the output of sc queryex "Zabbix Agent 2" from a command prompt after the agent has crashed:

SERVICE_NAME: Zabbix Agent 2
TYPE : 10 WIN32_OWN_PROCESS
STATE : 1 STOPPED
WIN32_EXIT_CODE : 1067 (0x42b)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
PID : 0
FLAGS :

Comment by Nathan Slusher [ 2021 Sep 27 ]

I am still getting intermittent agent 2 crashes on several machines. The release notes for 5.4.5 include some other fixes that we need so when that is released I will upgrade our agents and see if the crashes still happen.

Comment by Karlis Salins [ 2021 Sep 29 ]

Hello!
Thanks for the input!
Does all these machines, who have crashes, monitor wmi? with keys like: wmi.get or wmi.getall ?
We have similar bug request - ZBX-19595.
For now, if indeed the agent 2 monitors wmi, and you do not need agent 2 features on these machines, I would advise using Zabbix Agent version 1.

Thanks,
Karlis

Comment by Nathan Slusher [ 2021 Sep 29 ]

Yes, we are using some keys that use WMI

I upgraded our agents to use the latest 5.4.5 release today and will continue to monitor them for crashes.

Comment by Antons Sincovs [ 2021 Sep 30 ]

Please, keep us posted! 

Comment by Nathan Slusher [ 2021 Oct 04 ]

One of our machines running Zabbix agent 2 5.4.5 crashed over the weekend and it did not produce any relevant error information in the log (like previous agent versions). Perhaps it is related to the ZBX-19595 ticket that you mentioned.

Comment by Karlis Salins [ 2021 Oct 06 ]

Hello!
Thank you for your help with the issue! 
This indeed seems to a duplicate of ZBX-19595. I will be closing this ticket, as developers have started the bug fixing process on the mentioned bug. Feel free to vote for it and follow its progress.

Best regards,
Karlis

Generated at Fri Apr 11 15:12:16 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.