[ZBX-18529] FQDN hostname autoregistration Created: 2020 Oct 21  Updated: 2023 Mar 27  Resolved: 2023 Mar 27

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent2 plugin (G)
Affects Version/s: 5.0.4
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: Namoussi Yayaoui Assignee: Aleksandrs Petrovs-Gavrilovs
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Windows


Attachments: PNG File image-2020-10-21-10-35-26-120.png    
Issue Links:
Duplicate
is duplicated by ZBXNEXT-7132 FQDN support in system.hostname key f... Closed

 Description   

Hello guys

Actually i'm trying doing an autoregistration for our park, we work only with windows serveur so i'm trying to do an autoregistration i'm using this configuration 

Server=10...111
ServerActive=10...111

HostnameItem=system.run[powershell -noprofile -noninteractive -command "& gcim win32_computersystem -Property dnshostname,domain | foreach \{ ($_.DNSHostname + '.' + $_.Domain).ToLower() }"]

 

and when i'm launching it i'm getting this error 

2020/10/21 10:33:56.502272 cannot process configuration: cannot get system hostname using "HostnameItem=system.run[powershell -noprofile -noninteractive -command "& gcim win32_computersystem -Property dnshostname,domain | foreach \{ ($_.DNSHostname + '.' + $_.Domain).ToLower() }"]" item specified by "HostnameItem" configuration parameter: Invalid item key format.

 



 Comments   
Comment by Konstantins Prutkovs (Inactive) [ 2023 Mar 27 ]

Related to ZBXNEXT-7132.
Windows and other systems now support system.hostname[fqdn] items. So you are able to specify an item that will retrieve FQDN.

Generated at Wed Jan 07 21:39:46 EET 2026 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.