Ad Widget

Collapse

message log : cannot send list of active checks to [127.0.0.1]: host [Zabbix server]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marnedb
    Junior Member
    • Mar 2010
    • 3

    #1

    message log : cannot send list of active checks to [127.0.0.1]: host [Zabbix server]

    I'm a new zabbix user and I need help.

    The zabbix_server and the zabbix_abent runs at the same host.

    Appears this message at the interface Web:

    Receive empty response from zabbix agent at [127.0.0.1]. Assuming that agent dropped connection because of access permition.

    My zabbix_agent.conf:


    ### Option: Server
    # IP address of Zabbix server
    # Connections from other hosts will be denied
    # If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally.
    #
    # Mandatory: yes
    # Default:
    # Server=

    Server=127.0.0.1

    My zabbix_agent log when restarted:

    32085:20120817:091833.649 Got signal [signal:15(SIGTERM),sender_pid:32161,sender_uid:0,r eason:0]. Exiting ...
    32085:20120817:091835.650 Zabbix Agent stopped. Zabbix 2.0.2 (revision 29214).
    32165:20120817:091835.669 Starting Zabbix Agent [Zabbix server]. Zabbix 2.0.2 (revision 29214).
    32166:20120817:091835.670 agent #0 started [collector]
    32168:20120817:091835.672 agent #2 started[listener]
    32169:20120817:091835.673 agent #3 started[listener]
    32170:20120817:091835.673 agent #4 started [active checks]
    32167:20120817:091835.673 agent #1 started[listener]

    My zabbix_server log :

    4421:20120817:090809.772 executing housekeeper
    4421:20120817:090815.248 housekeeper deleted: 0 records from history and trends, 12430 records of deleted items, 0 events, 0 alerts, 0 sessions

    I tried to connect with the command:

    telnet 127.0.0.1 10050


    the connection was established but closed at about 2 seconds

    telnet 127.0.0.1 10050
    Trying 127.0.0.1...
    Connected to 127.0.0.1.
    Escape character is '^]'.
    Connection closed by foreign host.

    PS: Sorry my english is terrible.
  • Perec
    Junior Member
    • May 2012
    • 4

    #2
    For active check in the zabbix_agent.conf set :

    StartAgents=0
    ServerActive=127.0.0.1
    Hostname=

    Hostname= must match hostname as configured on the server.

    Set the loglevel to 4 it's pretty helpfull.

    Sorry my english is terrible.
    so am i, even worse

    Comment

    • marnedb
      Junior Member
      • Mar 2010
      • 3

      #3
      Originally posted by Perec
      For active check in the zabbix_agent.conf set :

      StartAgents=0
      ServerActive=127.0.0.1
      Hostname=

      Hostname= must match hostname as configured on the server.

      Set the loglevel to 4 it's pretty helpfull.


      so am i, even worse
      I wrote in zabbix_agent config file your sugest but didn't solve the problem.

      With loglevel 4 shows this messages:

      30963:20120817:120135.624 End of send_buffer():SUCCEED
      30963:20120817:120135.624 Sleeping for 1 second(s)
      30961:20120817:120136.623 In update_cpustats()
      30961:20120817:120136.623 End of update_cpustats()
      30963:20120817:120136.624 In send_buffer() host:'127.0.0.1' port:10051 values:0/100

      The zabbix_get returns ok


      zabbix_get -s 127.0.0.1 -p 10050 -k "proc.num[]"
      159

      Comment

      • ploochan
        Member
        • Oct 2009
        • 42

        #4
        did you get it fix by any chance? if so, do you remember what u did?

        Comment

        • tchjts1
          Senior Member
          • May 2008
          • 1605

          #5
          Originally posted by ploochan
          did you get it fix by any chance? if so, do you remember what u did?
          Usually for Zabbix agent (active), the issue is with the Hostname=xxxxxx in zabbix_agentd.conf and the name for that host in the Zabbix frontend.

          They have to be a perfect match in spelling and case for Active agent to work.

          If you make changes in zabbix_agentd.conf, remember to restart the agent process.

          Comment

          • ploochan
            Member
            • Oct 2009
            • 42

            #6
            hmmm... right now I have a weird issue. I upgraded from 1.8 to 2.0.3, and all went fine until the zabbix_server didn't want to start. I found what the problem is and I thought all was great.
            Then I realized that zabbix server is collecting data but it doesn't send email when a trigger goes off or doesn't show in the overview tab or dashboard if a host is down.
            I found in two kind of logs

            In /tmp/zabbix_agentd.log
            3303:20121024:145044.773 No active checks on server: host [Zabbix server] not found

            and bunch of logs in /tmp/zabbix_server.log
            3236:20121024:145503.636 cannot send list of active checks to [10.1.1.91]: host [IT-S1] not found
            3233:20121024:145508.068 cannot send list of active checks to [10.50.2.28]: host [intranet] not found
            3234:20121024:145516.462 cannot send list of active checks to [10.2.0.10]: host [shoretel] not found
            3233:20121024:145520.216 cannot send list of active checks to [10.50.2.30]: host [vm-mi-pos] not found
            3234:20121024:145619.608 cannot send list of active checks to [10.2.0.10]: host [shoretel] not found
            3233:20121024:145645.248 cannot send list of active checks to [127.0.0.1]: host [Zabbix server] not found


            Any ideas?

            Comment

            • tchjts1
              Senior Member
              • May 2008
              • 1605

              #7
              Did you also upgrade the configuration files to the new 2.0.3 format on your hosts? You can't use the old 1.8.x zabbix_agentd.conf on a 2.0.3 host binary.

              There is a field now "ServerActive=" that needs to have the IP or DNS of the Zabbix server in it for Active agents to work.

              Comment

              • ploochan
                Member
                • Oct 2009
                • 42

                #8
                i notice that I have two zabbix_agentd.conf one is located in /etc/zabbix/ and that one doesnt have that configuration. The 2nd one located in /usr/local/etc/ has that with ServerActive=127.0.0.1

                Do I need to type the actual IP?

                Comment

                • tchjts1
                  Senior Member
                  • May 2008
                  • 1605

                  #9
                  Originally posted by ploochan
                  i notice that I have two zabbix_agentd.conf one is located in /etc/zabbix/ and that one doesnt have that configuration. The 2nd one located in /usr/local/etc/ has that with ServerActive=127.0.0.1

                  Do I need to type the actual IP?
                  I believe /usr/local/etc is the proper location now. If your host is not also on your Zabbix server, then yes, you need the IP address of your Zabbix server there and an agent restart. 127.0.0.1 equals localhost. That won't do you any good on a host that is it's own server or VM. It is trying to send active checks to itself.

                  Comment

                  Working...