Ad Widget

Collapse

Remote connections refused

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wccc45
    Junior Member
    • Nov 2012
    • 3

    #1

    Remote connections refused

    Hi All,

    I am very new to Zabbix. This is my first ever install.

    I have rolled out the Zabbix appliance virtual, added my host to the web interface and installed the agent on a Redhat Server.

    The service starts fine, I have a response from the server when i use the 'zabbix_get -k system.uname -s 192.168.75.10' (and also with the 127.0.0.1 address).

    I have tried to telnet from another machine on the same network. The telnet session is started but does not hold.

    [root@dssystem2 ~]# telnet 192.168.75.10 10050
    Trying 192.168.75.10...
    Connected to dssystem1.oglcomputer.co.uk (192.168.75.10).
    Escape character is '^]'.
    Connection closed by foreign host.

    The Zabbix Server Web portal shows the connection error as being: "Received empty response from Zabbix Agent at [192.168.75.10]. Assuming that agent dropped connection because of access permission"

    Now, I am pretty sure that this is related to a permission problems and my Zabbix Server (192.168.75.190) not being allowed to access the agent, but I cannot find, for the life of me, where to change the permissions to allow remote access from specific IP addresses. It's only local monitoring required, so i don't even mind if access is full opened.

    Any help would be appreciated.

    Many thanks for your help in advance. I know this is probably a very common query from Zabbix n00bs, but I have been looking for days and trying many different things without being able to finally nail this problem.
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    On your monitored host, in the zabbix_agentd.conf file is a line Server=
    Put the Zabbix server IP address (or DNS name) after the equals sign.

    After you make any changes to your agent conf file, you must restart the agent process.

    Comment

    • wccc45
      Junior Member
      • Nov 2012
      • 3

      #3
      It worked!

      Thanks for helping me tchjts1!

      You're a star! This has fixed my issue! I have no idea how i didnt try my Zabbix Server IP in this field before hand.

      While on the subject of the conf file.... What is the purpose of the Active Server field? What addresses am i supposed to put in there?

      Thanks again for your assistance! Much appreciated!

      Wccc45

      Comment

      • tchjts1
        Senior Member
        • May 2008
        • 1605

        #4
        For the ActiveServer value, also put the IP address of your Zabbix server. This is for use if you start using zabbix agent (active) for your items.

        Comment

        • wccc45
          Junior Member
          • Nov 2012
          • 3

          #5
          Perfect! Thank you tchjts1!!

          Comment

          • tchjts1
            Senior Member
            • May 2008
            • 1605

            #6
            You are welcome. The ActiveServer variable is relatively new functionality for Zabbix. I haven't looked deeply into it, but I know you have to configure it for Active items to work.

            I believe the intent behind it is to allow your host(s) to report to 2 different Zabbix servers, if you had the requirement. You could direct passive items to report to one Zabbix server and active items to another.

            Comment

            Working...