Ad Widget

Collapse

icon zabbix is not green when i active activecheck

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • anilkocaturk
    Junior Member
    • Jun 2019
    • 13

    #16
    restart the agent service

    Comment

    • ramy24
      Member
      • Oct 2019
      • 42

      #17
      yeah i restart but the same result

      Comment

      • anilkocaturk
        Junior Member
        • Jun 2019
        • 13

        #18
        is there any error message or log?
        For example "Get value from agent failed: cannot connect to [[XXX.XXX.XXX.XXX]:10050]: [4] Interrupted system call"

        Comment

        • ramy24
          Member
          • Oct 2019
          • 42

          #19
          take a look , i send you a screenshot
          Attached Files

          Comment

          • anilkocaturk
            Junior Member
            • Jun 2019
            • 13

            #20
            Agent not working correctly for active type. Is your server installed on same machine? And did you setup your create host configuration correctly? Possiblely that host's lastest value is not receiving right?

            Comment

            • ramy24
              Member
              • Oct 2019
              • 42

              #21
              the server is installed in other machine ,
              and i installed zabbix-agent on this machine ,
              the configuration steps are correct

              Comment

              • ramy24
                Member
                • Oct 2019
                • 42

                #22
                here the Agentconfiguration file
                /etc/zabbix/zabbix_agent.conf
                Last edited by ramy24; 25-12-2019, 12:19.

                Comment

                • anilkocaturk
                  Junior Member
                  • Jun 2019
                  • 13

                  #23
                  Hi ramy24

                  In 19th comment as you send, agent trying to connect 127.0.0.1 but your server is not there. Please delete 127.0.0.1 in Server=127.0.0.1,41.227.192.174. There is should be only your server's ip.
                  Be sure your machine's ip is static.
                  Be sure telnet 41.227.192.174 10051 is connecting to server from your client and try it on server side too telnet YOURCLIENTIP 10050. If both connecting, problem must be on our configuration.
                  Maybe passive mode couldnt working without secure connection I'm not sure maybe you could try psk.
                  Please look at this guide for better steps. https://linuxize.com/post/how-to-ins...e-zabbix-agent

                  I hope that will helps you.

                  Comment

                  • ramy24
                    Member
                    • Oct 2019
                    • 42

                    #24
                    Hi @anilkocaturk and @splitek,
                    i respected steps and i try the commands telnet ,it is working , but zabbix_get still dosent work

                    Thank you

                    Comment

                    • dimir
                      Zabbix developer
                      • Apr 2011
                      • 1080

                      #25
                      Please do not enable remote commands unless you need them. That's a security issue.
                      So, your agent is running, but you can't connect to port 10050, which means either:
                      • the agent started no listener processes (StartAgents=0)
                      • the agent is listening on other port than 10050 (e. g. ListenPort=10060)
                      • something (e. g. SELinux or AppArmor or something else) is blocking your connection
                      Please run the following command:
                      Code:
                      sudo netstat -laptun | grep zabbix

                      Comment

                      • ramy24
                        Member
                        • Oct 2019
                        • 42

                        #26
                        Hi Dimir,
                        Here the output of the Command that i have executed on the agent machine and the agent configuration file ,
                        sudo netstat -laptun | grep zabbix
                        Attached Files

                        Comment

                        • dimir
                          Zabbix developer
                          • Apr 2011
                          • 1080

                          #27
                          OK, looks like I have missed some messages, your agent config says you have defaults for StartAgents and ListenPort, which is fine. I think on the agent host you have some security mechanism enabled, otherwise the telnet command would work.

                          Comment

                          • ramy24
                            Member
                            • Oct 2019
                            • 42

                            #28
                            Hey Dimir
                            Can you tell me how i can know how Apparmor block my connection ?

                            Comment

                            Working...