Ad Widget

Collapse

Autodiscover works but hosts are not added

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • trust
    Junior Member
    • Jun 2019
    • 7

    #1

    Autodiscover works but hosts are not added

    Hello,

    I am trying to get my autodiscover to work, what I want is to just install the Client on the Server I want to monitor and then add it as a host automatically as well as adding the template, groups etc.

    So far this is all I have:

    1) Hosts are being detected:


    (In this case there are 2 Hosts being detected, both hosts have "HostMetadataItem=system.uname" to their zabbix_agentd.conf)

    2) I have created a new action to add the Host:


    3) My Discovery rules:


    There are some more pictures but I cant add them to the text (idk why...).

    I have also set the Zabbix Server and the Active Server in the config of the client.
    Here are the logs, I have edited some of the information for privacy:
    2788:20190619:130516.447 no active checks on server [ZabbixServer:10051]: host [CLIENTName] not found
    2788:20190619:130716.452 no active checks on server [ZabbixServerIP:10051]: host [CLIENTName] not found
    2788:20190619:130916.562 no active checks on server [ZabbixServerIP:10051]: host [CLIENTName] not found
    2788:20190619:131116.624 no active checks on server [ZabbixServerIP:10051]: host [CLIENTName] not found
    2788:20190619:131316.665 no active checks on server [ZabbixServerIP:10051]: host [CLIENTName] not found
    2788:20190619:131516.699 no active checks on server [ZabbixServerIP:10051]: host [CLIENTName] not found
    2788:20190619:131716.774 no active checks on server [ZabbixServerIP:10051]: host [CLIENTName] not found
    2856:20190619:131827.231 Zabbix Agent stopped. Zabbix 4.0.9 (revision 97a69d5). <---- Me Restarting the client
    1040:20190619:131827.602 Starting Zabbix Agent [CLIENTName]. Zabbix 4.0.9 (revision 97a69d5).
    1040:20190619:131827.667 **** Enabled features ****
    1040:20190619:131827.674 IPv6 support: YES
    1040:20190619:131827.681 TLS support: YES
    1040:20190619:131827.689 **************************
    1040:20190619:131827.696 using configuration file: C:\Program Files\Zabbix Agent\zabbix_agentd.conf
    1040:20190619:131827.703 agent #0 started [main process]
    3020:20190619:131827.704 agent #1 started [collector]
    3972:20190619:131827.705 agent #2 started[listener #1]
    5108:20190619:131827.707 agent #4 started[listener #3]
    4456:20190619:131827.710 agent #3 started[listener #2]
    There are no changes in the logs after this (19 June...)

    Maybe someone can help me out here.

  • vinceskahan
    Junior Member
    • May 2019
    • 5

    #2
    I suspect you have a discovery rule, but no associated enabled action.

    Comment

    • trust
      Junior Member
      • Jun 2019
      • 7

      #3
      Originally posted by vinceskahan
      I suspect you have a discovery rule, but no associated enabled action.
      Hello,

      how do I link my Action to the Discovery?

      Comment

      • Mike2K
        Member
        • Oct 2018
        • 62

        #4
        Originally posted by vinceskahan
        I suspect you have a discovery rule, but no associated enabled action.
        The autodiscover does just that. It automatically discovers hosts and that's it. Vinces is right, you have to go to configuration -> Actions.
        Click on the top right drop down menu and select the Discovery event source...

        Comment

        Working...