Ad Widget

Collapse

How do autodiscover hosts and get them added to a Host Group?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chainsman
    Junior Member
    • Aug 2023
    • 2

    #1

    How do autodiscover hosts and get them added to a Host Group?

    I'm trying to autodiscover hosts and get them added to a Host Group. I have tried using ping, ssh, http(s), and telnet. The hosts get discovered but never get added to any host group, nor can I find any way to get them added to one.
    I'm using Zabbix 6.4.6 on Ubuntu 22.04.

    Thanks!
  • JackoAC
    Member
    • May 2023
    • 35

    #2
    Hello,
    I hope this will help you, in my company we use a similar system for AD computers.

    We have a GPO that deploys an agent installation script with a keyword "PC". script look like this
    "
    /i \\<YOUR_SRV_AD>\share\zabbix_agent-6.0.20-windows-amd64-openssl.msi /qn ENABLEREMOTECOMMANDS=1 SERVER=<IP_ZABBIX> ServerActive=<IP_ZABBIX> HOSTNAME=%computerName% HOSTMETADATA=PC
    "
    And on Zabbix, in configuration > actions > automatic registration action, we've created an action with the name PC and the condition "host metadata contains PC".

    As you've probably guess the metadata must be the same.

    Then all we had to do was add operations, and after rebooting the PCs, they were added to Zabbix.​

    Kind regards

    Comment

    • vijayk
      Senior Member
      • May 2023
      • 305

      #3
      Originally posted by chainsman
      I'm trying to autodiscover hosts and get them added to a Host Group. I have tried using ping, ssh, http(s), and telnet. The hosts get discovered but never get added to any host group, nor can I find any way to get them added to one.
      I'm using Zabbix 6.4.6 on Ubuntu 22.04.

      Thanks!
      Do you have zabbix agent installed on hosts? If yes then you may use the "Zabbix agent" in checks in Discovery rule. You have to also define the Discovery action to assign the group and template to discovered host.

      Comment

      • chainsman
        Junior Member
        • Aug 2023
        • 2

        #4
        I don't have Zabbix agent installed. I was hoping for a way to get the autodiscovered hosts to be moved into the inventory.

        Comment

        Working...