[ZBX-14398] Zabbix agent failed if 'Server=' is commented out Created: 2018 May 25  Updated: 2024 Apr 10  Resolved: 2018 Jun 14

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G), Documentation (D)
Affects Version/s: None
Fix Version/s: 3.0.19rc1, 3.4.11rc1, 4.0.0alpha8, 4.0 (plan)

Type: Problem report Priority: Trivial
Reporter: Vitaly Zhuravlev Assignee: Vladislavs Sokurenko
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team A
Sprint: Sprint 36
Story Points: 0.125

 Description   

At least on Windows, Zabbix agent fails to start if Server= is commented out in the config and
StartAgents>0. It fails with error like this:

zabbix_agentd [8262]: ERROR: StartAgents is not 0, parameter "Server" must be defined

However, default comments in zabbix_agentd.conf says that this parameters is not mandatory. And there is no dependency on StartAgents documented.
Here how it looks like;

### Option: Server
# List of comma delimited IP addresses (or hostnames) of Zabbix servers.
# Incoming connections will be accepted only from the hosts listed here.
# If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally.
#
# Mandatory: no
# Default:
# Server=

Please consider to change default, or document this situation more accurate.



 Comments   
Comment by Vitaly Zhuravlev [ 2018 May 25 ]

Note that zabbix_agent error only appears if agent started in the foreground. Otherwise(as service) - there are no errors in the log file so this situation is hard to debug.

Comment by Vladislavs Sokurenko [ 2018 Jun 13 ]

Fixed in:

  • 3.0.19rc1 r81811
  • 3.4.11rc1 r81812
  • 4.0.0alpha8 (trunk) r81813
Generated at Wed May 08 06:08:11 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.