[ZBXNEXT-2903] zabbix_sender and default hostname in config file Created: 2015 Aug 14  Updated: 2015 Sep 16  Resolved: 2015 Aug 14

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Agent (G)
Affects Version/s: None
Fix Version/s: None

Type: Change Request Priority: Trivial
Reporter: Constantin Oshmyan Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

v2.2.10, 2.4.6


Issue Links:
Duplicate
duplicates ZBXNEXT-1729 zabbix_sender ignores HostnameItem if... Closed

 Description   

The zabbix_sender utility can use the "-c config_file" parameter, in this case it can extract the reference to Zabbix-server (hostname/IP-address and port number) as well as Agent's hostname (to avoid the "-s", "-p" and "-s" parameters usage). It is great; however, the keyword "Hostname=" in config file could be absent (or commented out) in many installations. The agent in this case use some algorithm for the hostname obtaining (check for the "HostnameItem" keyword in the config file, use the default "system.hostname" for it, etc.). However, zabbix_sender utility in this case requires the "-s" parameter obligatory, otherwise it fails.

It will great to have the zabbix_sender utility with the same logic for a hostname calculation if it called with "-c" parameter, but the "Hostname" absent in config file. In the simplest case, just to use the default "system.hostname" metric by some way (asking the agent, or just replaying the same logic as the agent). Of course, it should be consistent with the agent's results (for example, transforming the hostname to uppercase on Windows platform and keeping it "as is" otherwise).



 Comments   
Comment by richlv [ 2015 Aug 14 ]

closing as a duplicate of ZBXNEXT-1729

Generated at Wed Apr 09 12:33:26 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.