Ad Widget

Collapse

Received empty response from Zabbix Agent at [x.x.x]. Assuming that agent dro

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • theocastelo
    Member
    Zabbix Certified Specialist
    • Oct 2012
    • 81

    #1

    Received empty response from Zabbix Agent at [x.x.x]. Assuming that agent dro

    Hi Guys,

    first, sorry for my bad english, but i really need help,

    The zabbix is working through the network 172.12.x., Im monitoring few servers. fine.

    I need to monitor a server on the network 192.12, already checked the firewall is released, the ports 10050, 10051, gave telnet server zabbix to host and host to the server, everything running normal.

    The agentd.conf is in the right folder.

    But when I give the command zabbix_get.exe system.uname response comes empty.

    The agent icon turns red and gives the following message: Received empty response from Zabbix Agent at [192.12.xx]. Assuming That agent dropped connection because of access permissio

    Can anyone help me please.

    Thanks So much...

  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    In zabbix_agentd, is Server= configured correctly?
    Is the service running?

    What does the monitored host show in zabbix_agentd.log?

    Comment

    • theocastelo
      Member
      Zabbix Certified Specialist
      • Oct 2012
      • 81

      #3
      hi tchjts1 , thanks for the reply...

      In zabbix_agentd, is Server= configured correctly?

      Yes, this server are correctly configured

      Is the service running?

      Yes, the service are running, and if i do zabbix_get in host agent, from the server, he gave me a empty string...

      What does the monitored host show in zabbix_agentd.log?

      I need to get this tomorrow on work, but if i remember, this log just tell me when service is up and monitoring port...

      Comment

      • theocastelo
        Member
        Zabbix Certified Specialist
        • Oct 2012
        • 81

        #4
        Code:
         24059:20130103:004116.106 Starting Zabbix Agent [xxxx]. Zabbix 2.0.4 
         24061:20130103:004116.107 agent #0 started [collector]
         24065:20130103:004116.108 agent #3 started[listener]
         24063:20130103:004116.108 agent #2 started[listener]
         24062:20130103:004116.108 agent #1 started[listener]
        The info in log file, are the same on this...

        I change the DebugLevel to 4, and ll post the results later..
        Last edited by theocastelo; 08-03-2013, 22:46.

        Comment

        • theocastelo
          Member
          Zabbix Certified Specialist
          • Oct 2012
          • 81

          #5
          tchjts1,

          Looking in the Zabbix_agentd.log i find this lines:

          Code:
          25555:20130308:163914.103 Listener error: Connection from [192.168.XXX.XXX] rejected. Allowed server is [172.19.X.XX].
           25554:20130308:163915.068 In update_cpustats()
           25554:20130308:163915.069 End of update_cpustats()
           25554:20130308:163916.069 In update_cpustats()
           25554:20130308:163916.069 End of update_cpustats()
           many lines with the same code
          explaining:

          192.168.xx refers to the host
          172.19.xx refers to the Zabbix Server
          Both ports 10050 and 10051 are open on the firewall between the 2 network - 192.x and 172.x

          This is the content of the file zabbix_agentd.conf:

          ##-----------Conf-----------------------------##

          Server=172.19.x.xx
          ListenIP=192.168.x.x
          ListenPort=10050
          Hostname=vm-inde01.xxxxxxxxx.xx.xx
          LogFileSize=4
          StartAgents=5
          DebugLevel=4
          PidFile=/var/run/zabbix/zabbix_agentd.pid
          LogFile=/var/log/zabbix-agent/zabbix_agentd.log
          Timeout=30
          EnableRemoteCommands=1
          RefreshActiveChecks=60
          BufferSend=60
          BufferSize=500
          MaxLinesPerSecond=100

          #------------end-----------------

          The file zabbix_agentd.conf are in this folder:



          The file in /usr/local/etc/zabbix_agentd.conf is one note (shortcut) to folder /etc/zabbix/zabbix_agentd.conf , as you can see in the above print;

          And the service are up, as you can see here:



          Well, if there's anything else I can do to try to help you understand the problem, let me know ...

          thank you immensely for your help

          Comment

          • heaje
            Senior Member
            Zabbix Certified Specialist
            • Sep 2009
            • 325

            #6
            Originally posted by theocastelo
            tchjts1,

            Looking in the Zabbix_agentd.log i find this lines:

            Code:
            25555:20130308:163914.103 Listener error: Connection from [192.168.XXX.XXX] rejected. Allowed server is [172.19.X.XX].
             25554:20130308:163915.068 In update_cpustats()
             25554:20130308:163915.069 End of update_cpustats()
             25554:20130308:163916.069 In update_cpustats()
             25554:20130308:163916.069 End of update_cpustats()
             many lines with the same code
            Based on the error message, it looks like something in the 192.168.x.x range is trying to connect to your agent, not the server in 172.19.x.x. The error message is essentially saying "I'm configured to allow connections from 172.19.x.x, but something is connecting from 192.168.x.x. As a result, I'm refusing the connection".

            Are you absolutely sure that your server connection isn't being NAT'd as it goes into the 192.168.x.x subnet? What happens if you add the 192.168.x.x address from the log entry to your Server line (comma delimited) in the agent?

            Comment

            • tchjts1
              Senior Member
              • May 2008
              • 1605

              #7
              Try commenting out this line: ListenIP=192.168.x.x in your zabbix_agentd.conf file and restarting your agent.

              Comment

              Working...