[ZBXNEXT-792] Create a Windows item for Host Name (not NetBIOS Name) Created: 2011 May 24  Updated: 2012 Apr 18  Resolved: 2011 May 25

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

Type: New Feature Request Priority: Major
Reporter: Rudolfs Kreicbergs Assignee: Rudolfs Kreicbergs
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate

 Description   

Currently system.hostname shows NetBIOS name for Windows



 Comments   
Comment by Rudolfs Kreicbergs [ 2011 May 25 ]

Fixed in dev branch: svn://svn.zabbix.com/branches/dev/ZBXNEXT-792

Comment by Rudolfs Kreicbergs [ 2011 Jun 01 ]

Available in pre-1.8.6 r19987 and pre-1.9.5 r19990.

Comment by Oleksii Zagorskyi [ 2012 Apr 17 ]

Short description: added support of parameters for the "system.hostname" key.
Parameters: netbios (default) or host

Comment by Oleksii Zagorskyi [ 2012 Apr 17 ]

Tested two Windows hosts. In bot cases used mixed letters (lowercase and uppercase) with long host name.
Note: NetBIOS host name is trimmed to 15 symbols on hostname saving.
In both cases, a cmd command "hostname" returns real (case sensitive), full host name.

Results:

Windows XP SP3 32bit:

> hostname
WinXP-234TesTnamELonG

> zabbix_get -s localhost -k system.hostname[host]
WinXP-234TesTnamELonG

> zabbix_get -s localhost -k system.hostname
WINXP-234TESTNA

> zabbix_get -s localhost -k system.uname
Windows WINXP-234TESTNA 5.1.2600 Windows XP Service Pack 3 Intel IA-32

> zabbix_get -s localhost -k agent.version
1.8.12rc1

Server 2008 R2 Standard 64bit:

> hostname
Win-Serv2008-I65A4BignamE

>zabbix_get -s localhost -k system.hostname[host]
Win-Serv2008-I65A4BignamE

> zabbix_get -s localhost -k system.hostname
WIN-SERV2008-I6

> zabbix_get -s localhost -k system.uname
Windows WIN-SERV2008-I6 6.1.7600 Windows Server 2008 Intel IA-32

> zabbix_get -s localhost -k agent.version
1.8.12rc1

Conclusions:
the key "system.hostname[host]" always returns full, real (case sensitive), full host name.
the key "system.hostname" always returns trimmed to 15 symbols and always in UPPERCASE host name (NetBIOS name).

Comment by Oleksii Zagorskyi [ 2012 Apr 18 ]

To finalize this development nicely, two documentation pages were improved (only for 2.0 doc):
http://www.zabbix.com/documentation/2.0/manual/config/items/itemtypes/zabbix_agent
http://www.zabbix.com/documentation/2.0/manual/appendix/install/windows_agent#configuration

Generated at Thu Apr 25 20:19:26 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.