Ad Widget

Collapse

"Assuming that agent dropped connection because of access permissions."

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • herta
    Senior Member
    • Sep 2011
    • 101

    #1

    "Assuming that agent dropped connection because of access permissions."

    Environment:
    Zabbix server 1: 2.0.2 on Ubuntu 12.04 (uhuru)
    Zabbix server 2: 3.0.5 on Ubuntu 14.04 (uhurun)
    Zabbix agent: 2.0.4 on Solaris 10 1/13

    I'm trying to migrate our monitoring server from Zabbix server 1 to Zabbix server 2, but am failing miserably.

    On the agent system, I added the name of the new server to the "Server" list in /etc/zabbix/zabbix_agentd.conf:
    Server=uhuru,uhurun
    ServerActive=uhuru
    and restarted the zabbix agent.

    Zabbix server 2 gets the following error:

    "Received empty response from Zabbix Agent at [10.32.9.32]. Assuming that agent dropped connection because of access permissions."

    I have at least one item of type 'Zabbix Agent'. There are no firewalls between the servers, and the can reach each other (ping, ssh).

    For some reason, zabbix_get and zabbix_sender are missing from the Ubuntu package (or rather, the Makefile does not speciy how to build them), so I bluntly copied it from the old server to a local directory on the new one.

    On the old server,
    $ zabbix_get -k system.uname -s 10.32.9.32; echo $?
    SunOS edgerpapp 5.10 Generic_150400-17 sun4v sparc sun4v
    0

    On the new_server:
    $ ./zabbix_get -k system.uname -s 10.32.9.32; echo $?

    0

    Anyone any suggestions on how to debug this?
  • batchenr
    Senior Member
    • Sep 2016
    • 440

    #2
    Originally posted by herta
    Environment:
    Zabbix server 1: 2.0.2 on Ubuntu 12.04 (uhuru)
    Zabbix server 2: 3.0.5 on Ubuntu 14.04 (uhurun)
    Zabbix agent: 2.0.4 on Solaris 10 1/13

    I'm trying to migrate our monitoring server from Zabbix server 1 to Zabbix server 2, but am failing miserably.

    On the agent system, I added the name of the new server to the "Server" list in /etc/zabbix/zabbix_agentd.conf:
    Server=uhuru,uhurun
    ServerActive=uhuru
    and restarted the zabbix agent.

    Zabbix server 2 gets the following error:

    "Received empty response from Zabbix Agent at [10.32.9.32]. Assuming that agent dropped connection because of access permissions."

    I have at least one item of type 'Zabbix Agent'. There are no firewalls between the servers, and the can reach each other (ping, ssh).

    For some reason, zabbix_get and zabbix_sender are missing from the Ubuntu package (or rather, the Makefile does not speciy how to build them), so I bluntly copied it from the old server to a local directory on the new one.

    On the old server,
    $ zabbix_get -k system.uname -s 10.32.9.32; echo $?
    SunOS edgerpapp 5.10 Generic_150400-17 sun4v sparc sun4v
    0

    On the new_server:
    $ ./zabbix_get -k system.uname -s 10.32.9.32; echo $?

    0

    Anyone any suggestions on how to debug this?
    1. if your using a zabbix 3.0 the agent should be 3.0 as well
    2. remmber Server and ServerActive at zabbix_server.log should be ip address and not DNS name
    2.dont forget to restart after making this changes.

    Comment

    • herta
      Senior Member
      • Sep 2011
      • 101

      #3
      Found it.

      It's not the version mismatch, nor using hostnames instead of IP addresses in the Server and ServerActive definition.

      The problem was that for some reason the Agent daemon on Solaris wants its config file to be in /usr/local/etc/zabbix_agentd.conf instead of /etc/zabbix/zabbix_agentd.conf.

      I updated /usr/local/etc/zabbix_agentd.conf, then created a softlink from /usr/local/etc/zabbix_agentd.conf to /etc/zabbix/zabbix_agentd.conf, restarted the Agent and all is well.

      (That gives me a bit more time to upgrade all the agents.)

      Thanks for your suggestion, nevertheless, batchenr. It was while upgrading the first agent that I noticed what the real problem was.

      Comment

      Working...