Ad Widget

Collapse

Agent Autodiscovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tomaskovicmarcel
    Junior Member
    • Aug 2019
    • 9

    #1

    Agent Autodiscovery

    Hi guys,
    I have configured agent autodiscovery as well. But I have question: Is it posible fill on GUI in Agent interface DNS name? Example in screen.
    Thank you.
    Attached Files
  • AnthonyS_CP
    Junior Member
    • Oct 2019
    • 4

    #2
    Could you please clarify the question you are posing? Is it around how to auto populate the DNS name within the hosts that are found during auto discovery with agent?

    if so, you would need to change the "Checks" within your Discovery Rule. This should be set to agent and your "Key" [depending on Linux or Windows Systems]. If only Windows systems and you do not have a , you should set it as "system.hostname[host]". This should get the full hostname without being limit by the output length. I believe it is the netbios hostname.. Again this will only work, if you do not have anything populated within the configuration file for the hostname or the HostnameItem.

    I would say that you could create a script to populate the zabbix_agentd.conf file update the parameter of "Hostname" for each system. This script alteration / addition to the "Hostname" Parameter would need to occur before the execution of the agent process and initial configuration and deployment of these systems. This all comes down to how you are scripting agent deployment. Once that is completed, the Discovery rule for the agent checks would be set to Key value of "agent.hostname" and it would populate host parameters correct. .

    Hopefully this helps. If not, I could provide a couple examples. Have a wonderful weekend.

    Comment

    • tomaskovicmarcel
      Junior Member
      • Aug 2019
      • 9

      #3
      Hi Anthony,
      thank you. This is ok, but I need set hostname in "Agent Interface" field on GUI by autodiscovery.
      By autodiscovery agent I need to setup these things :
      - hostname
      - visible name
      - agent interface = hostname

      Detials are in the attachment.
      Thank you.


      PS : in nutshell what we are trying to achieve is to setup automatic discovery and population of data from the agent to the zabbix server.
      Current approach with manually modifying the zabbix_agent.conf is not OK for us.

      We can setup a template for the configuration but the template must act as default for all machines aka HostnameItem=system.hostname[host]
      Attached Files

      Comment

      Working...