Ad Widget

Collapse

Check access restrictions in Zabbix agent configuration error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fferraro87
    Junior Member
    • Jun 2017
    • 4

    #1

    Check access restrictions in Zabbix agent configuration error

    Hi,

    i've added two hosts and i've same problem when i use zabbix_get command i've this error :
    Code:
    zabbix_get [21359]: Check access restrictions in Zabbix agent configuration
    when i use tcpdump both from server and host everything works fine.

    how can i fix this?

    i've already check on this forum but i don't found anything.

    Thanks
    Last edited by fferraro87; 12-06-2017, 14:45.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Have you set the values of Server and ServerActive in zabbix_agentd.conf on the monitored server?

    If the IP address of the server executing the zabbix_get command is not registered, the value can not be acquired.

    Comment

    • fferraro87
      Junior Member
      • Jun 2017
      • 4

      #3
      Originally posted by Atsushi
      Have you set the values of Server and ServerActive in zabbix_agentd.conf on the monitored server?

      If the IP address of the server executing the zabbix_get command is not registered, the value can not be acquired.
      yeah, sure i've already set Server and ServerActive with my server IP address but it still doesn't works

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        If the setting is correct, please check with firewall etc for communication restriction.

        Comment

        • fferraro87
          Junior Member
          • Jun 2017
          • 4

          #5
          Originally posted by Atsushi
          If the setting is correct, please check with firewall etc for communication restriction.
          It's strange, i've already set right policy firewall for this communication.
          if i do a tcpdump in order to see if there ise some communication between this host and zabbix server i've this :

          ZABBIX SERVER
          Code:
          [root@zabbix-server ~]# tcpdump -S -q -i eth0 src 192.168.5.210 
          tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
          listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
          10:21:46.650496 IP 192.168.5.210.zabbix-agent > zabbix-server.54002: tcp 0
          10:21:46.650992 IP 192.168.5.210.zabbix-agent > zabbix-server.54002: tcp 0
          10:21:46.651112 IP 192.168.5.210.zabbix-agent > zabbix-server.54002: tcp 0
          10:21:46.651121 IP 192.168.5.210.zabbix-agent > zabbix-server.54002: tcp 0
          So i think that the agent on host, send some packets to my server.

          Comment

          • Atsushi
            Senior Member
            • Aug 2013
            • 2028

            #6
            I checked the source code zabbix_get.c.
            The following error message is output, the setting is incorrect.

            Code:
            zabbix_get [21359]: Check access restrictions in Zabbix agent configuration
            Because the setting is incorrect, an empty response may be returned.

            It is assumed that the value of Server set in zabbix_agentd.conf is not the IP address of the server that executed the zabbix_get command.

            Please set DebugLevel in zabbix_agentd.conf to see why it will be an empty response.
            Perhaps it should be accessed with an IP address other than the one set for Server.

            Comment

            • fferraro87
              Junior Member
              • Jun 2017
              • 4

              #7
              Originally posted by Atsushi
              I checked the source code zabbix_get.c.
              The following error message is output, the setting is incorrect.

              Code:
              zabbix_get [21359]: Check access restrictions in Zabbix agent configuration
              Because the setting is incorrect, an empty response may be returned.

              It is assumed that the value of Server set in zabbix_agentd.conf is not the IP address of the server that executed the zabbix_get command.

              Please set DebugLevel in zabbix_agentd.conf to see why it will be an empty response.
              Perhaps it should be accessed with an IP address other than the one set for Server.
              ok thanks, from debug log i see that there's a problem of routing because instead of server ip, i've packets from gateway

              Comment

              Working...