Ad Widget

Collapse

FQDN For AutoRegistration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bcarpio
    Member
    • Jun 2008
    • 96

    #1

    FQDN For AutoRegistration

    I am currently running Zabbix 1.8.4 due to issues I was having with SNMP in 1.8.6.

    Is there a way to get Hostname=system.hostname.FQDN in all of my zabbix_agentd.conf files? I don't want to have to actually specify the hostname.domain.com in each of my zabbix-agentd.conf files, is there some other variable that can be used?
  • miguelzinho
    Junior Member
    • Jan 2012
    • 2

    #2
    I´ve open a Feature Request about this topic:



    Right now it is not possible to make the Zabbix Agent use the FQDN of the host automatically.

    Comment

    • miguelzinho
      Junior Member
      • Jan 2012
      • 2

      #3
      Actually there is already a way to solve this.

      HostnameItem=system.run[hostname -f] does the trick.

      More about it:


      http://www.zabbix.com/documentation/...]=hostnameitem

      The Feature Request above can be ignored.

      Comment

      • GreenEyedBoy
        Junior Member
        • May 2023
        • 1

        #4
        What worked best for me was:

        AllowKey=system.run[*]
        system.run["powershell $env:COMPUTERNAME + '.' + (Get-CimInstance Win32_ComputerSystem).Domain"]
        ​in the .conf file

        Comment

        Working...