[ZBX-23752] Zabbix server crashes after creation of host with SNMP-interface via API call Created: 2023 Nov 27  Updated: 2024 Jan 05  Resolved: 2024 Jan 05

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 7.0.0alpha8
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Andy Afanasyev Assignee: Aigars Kadikis
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File zabbix_crash.log    
Issue Links:
Duplicate
duplicates ZBX-23799 Crash zabbix server after upgrade 6.4.9 Closed

 Description   

Steps to reproduce:

  1. Standard docker compose file with zabbix/zabbix-server-pgsql:alpine-trunk image 
  2. Make an API call to create a host with SNMP-interface (couldn't reproduce crash while creating hosts with Agent-interface) 

Part of python code: z.host.create({"host": name,"status": 1,"interfaces": [{"type": 2,"main": 1,"useip": 1,"ip": ip,"dns":"","port": "161","details":{"version":2,"bulk":1,"community":"{$SNMP_COMMUNITY}"}}],"groups": [\{"groupid":groupToAdd}]})

Result:

Host was created.
Server crashes.

Easily repeatable . Crashes almost after 50% API calls. 
7.0.0alpha8 revisions:  0880a0e, 78774f7



 Comments   
Comment by Andy Afanasyev [ 2023 Nov 27 ]

Several extra characters were inserted in python code after submitting this bug report ... like '\', for example.

Comment by Ty Smytaniuk [ 2023 Dec 15 ]

Was able to reproduce this issue on a Zabbix 6.4.9 installation on Alma Linux 9, using PostgreSQL database. As mentioned in the original description, >50% of API calls to create a host with SNMP Interface type result in the Zabbix Server crashing. The host is created and the server subsequently crashes, it recovers shortly after, subsequent API requests result in the same crashes.

UPDATE: My issue appears to have been resolved in 6.4.10, specifically 

ZBX-23799 Fixed crash when host interfaces are added and updated at the same time
Comment by Vladislavs Sokurenko [ 2024 Jan 05 ]

Thank you for your report, closing as a duplicate of ZBX-23799, feel free to reopen if issue still persists.

Generated at Thu Jun 12 13:31:53 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.