Ad Widget

Collapse

Check access restrictions in Zabbix agent configuration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mrobokoff
    Junior Member
    • Jun 2018
    • 2

    #1

    Check access restrictions in Zabbix agent configuration

    I have a Zabbix server running with some nodes reporting and all works well, I am trying to add some more servers to be monitored, and I ran into this issue.
    The server is saying that attempts to contact the agent are timing out. On the server to be monitored I run "zabbix_get -s 127.0.0.1 -k agent.version"
    in the agent config file I have server and server active listed with 127.0.0.1 and the actual IP of the node and the IP of the Zabbix server, similar to a server where this command works.
    Both the server and node to be monitored in AWS. As are the other nodes that are working. Even same subnets.
    I have ports 10050 and 10051 open to the world in the security group for both the server and the node to be monitored.
    selinux is disabled, local firewall is not running.
    Netstat "netstat -tulpn|grep zabbix" Shows this:
    tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 20798/zabbix_agentd
    tcp 0 0 :::10050 :::* LISTEN 20798/zabbix_agentd So I am puzzled as to what is blocking this connection, even when only involving the local host.
    Anyone have any ideas?

    Working server
    # zabbix_get -s 127.0.0.1 -k agent.version
    3.4.10
    Settings in /etc/zabbix/zabbix_agentd.conf
    Server=xxx.xx.xx.xxx,127.0.0.1
    ServerActive=xxx.xx.xx.xxx,127.0.0.1

    not working server that is configured similar to working server
    # zabbix_get -s 127.0.0.1 -k agent.version
    zabbix_get [27835]: Check access restrictions in Zabbix agent configuration
    Server=127.0.0.1,xx.xxx.xx.xxx,xxx.xx.xx.xxx,xx.xx .xx.xxx
    ServerActive=127.0.0.1,xx.xxx.xx.xxx,xxx.xx.xx.xxx ,xx.xx.xx.xxx
    Thanks for any help!
  • kernbug
    Senior Member
    • Feb 2013
    • 330

    #2
    Originally posted by mrobokoff

    not working server that is configured similar to working server
    # zabbix_get -s 127.0.0.1 -k agent.version
    zabbix_get [27835]: Check access restrictions in Zabbix agent configuration
    Server=127.0.0.1,xx.xxx.xx.xxx,xxx.xx.xx.xxx,xx.xx .xx.xxx
    ServerActive=127.0.0.1,xx.xxx.xx.xxx,xxx.xx.xx.xxx ,xx.xx.xx.xxx
    Thanks for any help!
    Hi

    Is the configuration file for the program being run matches the file that you configured?

    Comment

    • mrobokoff
      Junior Member
      • Jun 2018
      • 2

      #3
      I believe so,
      I have made some progress, by changing Server= to 0.0.0.0/0 and the same for ServerActive=
      the zabbix get command now works on the local machine.
      not sure why it does not work when set with the loop back address and the actual IP of the server.

      Comment

      Working...