Ad Widget

Collapse

Auto discovery problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pepe94
    Junior Member
    • Jan 2018
    • 4

    #1

    Auto discovery problem

    Hi,

    I'm new at zabbix and I have a problem with autodiscovery. It working (Add new host), but it set hostname at zabbix as ov-rds.test.local and I have got that at server log
    HTML Code:
    can not send list of active checks to "192.168.1.250": host [OV-RDS] not found.
    At host, I have hashed Hostname and removed hashtag ahead of Hostnameitem=system.hostname
    If I rename host manually to OV-RDS problem is solved but I have many computers..
    Last edited by Pepe94; 25-01-2018, 16:50.
  • kaspars.mednis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2017
    • 349

    #2
    Hi,

    You can try following solution



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

    Regards,
    Kaspars

    Comment

    • Pepe94
      Junior Member
      • Jan 2018
      • 4

      #3
      Originally posted by kaspars.mednis
      Hi,

      You can try following solution



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

      Regards,
      Kaspars
      Thank you, but when I do it I get this errors
      I need to run it on Windows hosts and hostname -f does not work on Windows and when I have tried only hostname without -f zabbix couldn't find agent on that host.
      Code:
      Zabbix_agentd.exe [2032]: Warning: sethostname: Configure computer name at network at control panel.
      command hostname -s is not supported
      Zabbix_agentd.exe [2032]: Warning: failed to get system hostname from [system.run[hostname -f]])
      Zabbix_agentd.exe [2032]: ERROR: "Hostname" configuration parameter is not defined
      Last edited by Pepe94; 29-01-2018, 12:04.

      Comment

      • Vartan
        Junior Member
        • Feb 2018
        • 1

        #4
        Just use OV-RDS as the hosts name on the Zabbix host page.

        Comment

        Working...