Ad Widget

Collapse

Unable to connect Zabbix agent in active mode to Zabbix server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marafado88
    Junior Member
    • Mar 2018
    • 27

    #1

    Unable to connect Zabbix agent in active mode to Zabbix server

    Hello,

    I am trying to add my first agent in a Zabbix server fresh install, by setup this fields on a Zabbix agent running in a Windows Server 2008,

    Server=<zabbix server>
    ServerActive=<zabbix server>
    Hostname=<hostname of the target server>


    and then, in Configurations>>Actions I have added an Auto registration action for the same hostname set in agent, and those 3 operations:

    Add host
    Add to host groups: Templates/Operating Systems
    Set host inventory mode: Automatic


    And there was no new entries in Inventory hosts.

    In zabbix agent logs, I have this, and there is nothing mentioning active server there:

    6252:20180321:093654.940 using configuration file: C:\Program Files\Zabbix Agent\conf\zabbix_agentd.win.conf
    6252:20180321:093654.987 agent #0 started [main process]
    16872:20180321:093654.987 agent #1 started [collector]
    13436:20180321:093654.987 agent #2 started[listener #1]
    18876:20180321:093654.987 agent #3 started[listener #2]
    17072:20180321:093654.987 agent #4 started[listener #3]


    And I have also used nc command doing:

    zabbix@zabbix:~$ nc -z -v -w 5 10.0.0.2 10050
    Warning: forward host lookup failed for gfe-server.x.local: Unknown host
    zabbix@zabbix:~$ nc -z -v -w 5 gfe-server 10050
    gfe-server: forward host lookup failed: Host name lookup failure : Resource temporarily unavailable


    And received those warnings but I dont understand why because this server can communicate through IP and DNS to intranet and internet, DNS is solving all links.

    Anyone?
  • marafado88
    Junior Member
    • Mar 2018
    • 27

    #2
    I have done this process with active server active(did a copy paste of the conf file) on a Windows Server 2012 but I have added it manually in Zabbix server, and I was able to receive data from that host.

    Comment

    • marafado88
      Junior Member
      • Mar 2018
      • 27

      #3

      That port was being filtered in that server, thanks anyway.

      Click image for larger version

Name:	Screenshot_11.png
Views:	1091
Size:	152.3 KB
ID:	355629

      Comment

      • kloczek
        Senior Member
        • Jun 2006
        • 1771

        #4
        Zabbix agent in active mode does not listen on agent port.
        http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
        https://kloczek.wordpress.com/
        zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
        My zabbix templates https://github.com/kloczek/zabbix-templates

        Comment

        • huangyingja
          Junior Member
          • Apr 2015
          • 27

          #5
          can you check is there any configurations in the " hosts " file ?

          Comment

          • marafado88
            Junior Member
            • Mar 2018
            • 27

            #6
            Originally posted by huangyingja
            can you check is there any configurations in the " hosts " file ?
            where is that file?

            Comment

            Working...