Ad Widget

Collapse

Agent become unavailable after upgrade to Zabbix 7.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sokeada
    Junior Member
    • Jun 2024
    • 25

    #1

    Agent become unavailable after upgrade to Zabbix 7.0

    Dear All,

    I've successes in place upgrade my Zabbix 6.0.30 LTS to 7.0.0 LTS but after few hours, zabbix agent become unavailable, when check the log, looks like it cannot access the the server IP. Anyone have any idea, please.


    2024/06/05 11:47:32.565705 Zabbix Agent2 hostname: [Zabbix server]
    2024/06/05 11:47:33.567090 [101] cannot connect to [127.0.0.1:10051]: dial tcp :0->127.0.0.1:10051: connect: connection refused
    2024/06/05 11:47:33.567147 [101] active check configuration update from host [Zabbix server] started to fail
    2024/06/05 11:47:33.567552 [101] cannot connect to [127.0.0.1:10051]: dial tcp :0->127.0.0.1:10051: connect: connection refused
    2024/06/05 11:47:33.567586 [101] sending of heartbeat message for [Zabbix server] started to fail
    2024/06/05 11:48:06.590937 [101] cannot receive data from [127.0.0.1:10051]: Cannot read message: 'read tcp 127.0.0.1:42327->127.0.0.1:10051: i/o timeout'
    2024/06/05 11:48:06.621729 [101] active check configuration update from host [Zabbix server] started to fail
    2024/06/05 11:48:12.569712 [101] active check configuration update from [127.0.0.1:10051] is working again
    2024/06/05 11:48:34.567352 [101] sending of heartbeat message to [127.0.0.1:10051] is working again
    2024/06/06 08:48:14.644420 Zabbix Agent 2 stopped. (7.0.0)


    Thanks,

    Sokeada
  • sles
    Member
    • Oct 2005
    • 80

    #2
    Why server has address 127.0.0.1 ?

    Comment

    • sokeada
      Junior Member
      • Jun 2024
      • 25

      #3
      because it a stand alone Zabbix server, agent is came as default installation.

      Comment

      • Markku
        Senior Member
        Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
        • Sep 2018
        • 1781

        #4
        What did your Zabbix server log say at the same time?

        Markku

        Comment

        • sokeada
          Junior Member
          • Jun 2024
          • 25

          #5
          the above message is from the agent log, I compared with 6.0 agent log both are identical but I have not idea why the service stop itself and can't be started.

          Click image for larger version

Name:	image.png
Views:	1521
Size:	11.6 KB
ID:	485273

          Comment

          • mskenderian
            Junior Member
            • Jan 2021
            • 9

            #6
            I have the same issue, i jsut upgrade from v6 to v7 and my zabbix server agent is not connecting.

            Code:
            Get value from agent failed: Cannot establish TCP connection to [[127.0.0.1]:10050]: [111] Connection refused

            Comment


            • sokeada
              sokeada commented
              Editing a comment
              I've found a solution, I just stop or remove agent2 then install agent1. After making sure the agent 1 is running then stop and disable agent 1, then install agent2, check the status, it should be running. That's what I have done and been using a week plus till now.
          • Markku
            Senior Member
            Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
            • Sep 2018
            • 1781

            #7
            Is your agent running? What does its log say?

            Markku

            Comment

            • mskenderian
              Junior Member
              • Jan 2021
              • 9

              #8
              logs didnt have any issues.

              i think something was wrong with my config file, i removed everything and reinstall it, same issue, then I realized that its the plugins, postgres and mongo, remove those *.conf and it works fine now

              i stop the service and manually ran
              Code:
              zabbix_agent2 -c /etc/zabbix/zabbix_agent2.conf
              thats how i found about the plugin issues

              Comment

              Working...