[ZBXNEXT-1188] new item which represents internal agent's "hostname" Created: 2012 Apr 17  Updated: 2013 Sep 24  Resolved: 2012 Apr 28

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

Type: New Feature Request Priority: Minor
Reporter: Oleksii Zagorskyi Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate

 Description   

Due to the ability to set the "hostname" via Hostname or HostnameItem the actual value of an agent's hostname can be ambiguous.

It would be useful to have ability to know current value (defined for example by Hostname=dummy or by HostnameItem=system.run[echo dummy-dummy]) of internal "zabbix hostname" (used to perform active checks) using passive a check.

So, it's an ask to implement new feature - add new key like "agent.hostname"

This would help for troubleshooting when setting up active checks for new monitored hosts.



 Comments   
Comment by richlv [ 2012 Apr 18 ]

to clarify, this is about returning "whatever the agent would use as the 'Hostname' for active checks"

Comment by Alexander Vladishev [ 2012 Apr 27 ]

Available in the development branch svn://svn.zabbix.com/branches/dev/ZBXNEXT-1188

Comment by Alexander Vladishev [ 2012 Apr 28 ]

(1) updated documentation:
http://www.zabbix.com/documentation/1.8/manual/config/items?&#zabbix_agent
http://www.zabbix.com/documentation/1.8/manual/config/items?&#supported_by_platform
http://www.zabbix.com/documentation/2.0/manual/config/items/itemtypes/zabbix_agent#supported_item_keys
http://www.zabbix.com/documentation/2.0/manual/appendix/items/supported_by_platform

Please review.

<martins-v>ok, with small grammar fixes here:
http://www.zabbix.com/documentation/1.8/manual/config/items?&#zabbix_agent
http://www.zabbix.com/documentation/2.0/manual/config/items/itemtypes/zabbix_agent#supported_item_keys

<Sasha> Thanks! CLOSED

Comment by dimir [ 2012 Apr 28 ]

(2) Error compiling server:

$ make >/dev/null
../../src/libs/zbxsysinfo/common/libcommonsysinfo.a(common.o): In function `AGENT_HOSTNAME':
common.c.text+0x18b): undefined reference to `CONFIG_HOSTNAME'
collect2: ld returned 1 exit status
make[1]: *** [zabbix_server] Error 1
make: *** [all-recursive] Error 1

<Sasha> RESOLVED in r27184:27186

<dimir> CLOSED

Comment by dimir [ 2012 Apr 28 ]

Successfully tested. Please review my small changes in r27189.

<Sasha> CLOSED

Comment by Alexander Vladishev [ 2012 Apr 28 ]

Available in versions pre-1.8.13rc1 r27196 and pre-2.0.0rc4 r27198.

Comment by Oleksii Zagorskyi [ 2013 Sep 24 ]

We forgot to include the new key to item selection helper.
It's reported as a separate issue ZBX-7037.

Generated at Fri Mar 29 00:22:16 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.