[ZBX-24782] Wrong default value for hostname in zabbix agent 2 configuration Created: 2024 Jul 04  Updated: 2024 Jul 04

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

Type: Problem report Priority: Trivial
Reporter: KB Jørgensen Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Steps to reproduce:

  1. apt install zabbix-agent2
  2. grep Hostname= /etc/zabbix/zabbix_agent2.conf -B7

Result:
The Hostname setting is described as not set by default, but below it's set to "Zabbix server".
**

Expected:
It shouldn't be set to anything specific there.

 

When installing zabbix agent 2 on many machines, we need to set Hostname to the empty string on all of them, for it to pick up the machine's hostname. If it followed the default described in the configuration of not setting it there and then picking the machine's hostname, that wouldn't be necessary.



 Comments   
Comment by KB Jørgensen [ 2024 Jul 04 ]

The setting is here:

https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/src/go/conf/zabbix_agent2.conf#138

Generated at Sat Apr 04 05:00:38 EEST 2026 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.