Ad Widget

Collapse

Agent Active not correctly setup

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Lumy
    Junior Member
    • Apr 2015
    • 3

    #1

    Agent Active not correctly setup

    Hi,

    After some reading and trying, i manage to make the active agent, but i still got some errors message.

    I'm sure that my zabbix server got notify by active agent


    But when i go to Configuration -> Host
    I got


    And it's seems to react as an passiv one telling me connection refused on port 10050 for my gitserver.vnet.net

    I've already change all Items Type for Active type:


    I've probably miss something, Could you help me ?
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    Originally posted by Lumy
    I've already change all Items Type for Active type:
    Did you setup in agent configuration ServerActive and restart the agent?
    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

    • Lumy
      Junior Member
      • Apr 2015
      • 3

      #3
      Hi,

      Thanks to take the time to help me.

      This is what a grep show me on the server side.
      Code:
      sudo grep "ServerActive" /etc/zabbix/zabbix_agentd.conf /etc/zabbix/zabbix_server.conf
      /etc/zabbix/zabbix_agentd.conf:### Option: ServerActive
      /etc/zabbix/zabbix_agentd.conf:#	Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
      /etc/zabbix/zabbix_agentd.conf:# ServerActive=
      /etc/zabbix/zabbix_agentd.conf:ServerActive=zabbix.vnet.net, 127.0.0.1
      And on the server I want to monitor:
      Code:
       grep "ServerActive" /etc/zabbix/zabbix_agentd.conf
      ### Option: ServerActive
      #	Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
      # ServerActive=
      ServerActive=zabbix.vnet.net

      It's doing what i want with the agent on the server but not with the remote one.
      I'm missing something for sure. but i do not know what.

      Comment

      • Gsmith
        Member
        • Mar 2015
        • 56

        #4
        Just Idea

        It's doing what i want with the agent on the server but not with the remote one.
        I'm missing something for sure. but i do not know what.
        Lumy,
        Is the proper port/s opened on the Remote Server?
        Is your remote agent pointing to your Zabbix Server/ServerActive?

        Comment

        • Lumy
          Junior Member
          • Apr 2015
          • 3

          #5
          Sorry for the delay:

          from the monitored server
          Code:
          $ telnet zabbix.vnet.net 10051
          Trying 192.0.1.5...
          Connected to zabbix.vnet.net.
          Escape character is '^]'.
          
          Connection closed by foreign host.
          $ telnet zabbix.vnet.net 10050
          Trying 192.0.1.5...
          Connected to zabbix.vnet.net.
          Escape character is '^]'.
          Connection closed by foreign host.
          $
          But the other way it's not usefull, since i'want an active set, port doesn't need to be open on the monitored server ?

          from zabbix server:
          Code:
          $ telnet gitserver.vnet.net 10051
          Trying 192.0.1.4...
          telnet: Unable to connect to remote host: Connection refused
          $ telnet gitserver.vnet.net 10050
          Trying 192.0.1.4...
          telnet: Unable to connect to remote host: Connection refused
          $
          @Gsmith: Is your remote agent pointing to your Zabbix Server/ServerActive?

          from the remote agent server:
          Code:
          $ grep "ServerActive" /etc/zabbix/zabbix_agentd.conf
          ### Option: ServerActive
          #	Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
          # ServerActive=
          ServerActive=zabbix.vnet.net

          Comment

          Working...