Ad Widget

Collapse

Zabbix agent 6-0-4 Debian 10 buster problem during installation

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JackoAC
    Member
    • May 2023
    • 35

    #1

    Zabbix agent 6-0-4 Debian 10 buster problem during installation

    Hello everyone,

    I recently installed a zabbix server, I managed to monitor Windows hosts without any problems and some Linux ones.
    However I have a problem with a Debian 10 buster machine which is our BlueMind mail server.

    Server information :
    Zabbix 6.0.17 on Debian 11 bullseye

    Agent information :
    Debian 10 buster, agent 6-0-4

    when I install it I get this error​ just after the command "apt install zabbix-agent"

    dpkg: zabbix-agent package processing error (--configure)

    Click image for larger version

Name:	Capture d'écran 2023-05-17 100855.png
Views:	1489
Size:	24.1 KB
ID:	464810

    So I looked at the logs of my agent and I have this message
    "Zabbix-agent.service: can't open PID file /run/zabbix/zabbix_agentd.pid (yet?) after start: no such file or directory
    zabbix-agent.service: Failed with result 'protocol'
    failed to start zabbix agent"


    I did some research on this error but without finding a solution.

    I tried to reinstall the agent from a previous version but the error comes back.
    The status on my agent is "loaded: loaded"
    Click image for larger version

Name:	Capture d'écran 2023-05-19 092011.png
Views:	1279
Size:	7.7 KB
ID:	464811
    Could you guys help me ? Thank in advance.​​
  • Answer selected by JackoAC at 06-06-2023, 15:23.
    JackoAC
    Member
    • May 2023
    • 35

    So for the answer i couldn't find a solution so i decided to install the Zabbix agent 2 and i worked fine

    Comment

    • LenR
      Senior Member
      • Sep 2009
      • 1005

      #2
      Is /run tmfps? Does /run/zabbix exist and is it owned by Zabbix? Does the zabbix-agent.service file contain a PIDFile line?

      Comment

      • JackoAC
        Member
        • May 2023
        • 35

        #3
        Hello,
        Thank for your answer !

        i do have a folder named Zabbix in /run but its empty.
        But he is owned by zabbix.

        Click image for larger version

Name:	Capture d'écran 2023-05-24 082024.png
Views:	1278
Size:	4.1 KB
ID:	464862

        When i check in the file /etc/zabbix/zabbix_agentd.conf, i do have a line with PID
        Click image for larger version

Name:	image.png
Views:	1274
Size:	5.3 KB
ID:	464863

        Should i create this file with nothing in it ? (Zabbix will then find it and complete it ?)

        I probably dont have this file because of my error with DPKG.

        Hope i answered your question, feel free to ask for more information and i'll do my best to provide.




        Comment

        • LenR
          Senior Member
          • Sep 2009
          • 1005

          #4
          My idea probably isn't your problem then.

          Note, I misspoke, the RuntimeDirectory option is used to create a /var/run directory before systemctl starts a service, PIDFile just indicates the file to use, it won't create the directory.

          Comment

          • JackoAC
            Member
            • May 2023
            • 35

            #5
            Hello,
            Could this be related to the Debian version?

            I guess I'm good to search the internet again in the meantime.

            Thanks for taking the time to read and answer my post

            Comment

            • JackoAC
              Member
              • May 2023
              • 35

              #6
              Hello,

              Up ?

              Someone to help me ?

              Thank in advance.

              Comment

              • JackoAC
                Member
                • May 2023
                • 35

                #7
                Hello,
                Guess i'm alone fo rthe problem.
                I don't find any solution on the Internet.
                If someone can help me it would be appreciated.

                Kind regards,

                Comment

                • Del.Mar
                  Junior Member
                  • May 2022
                  • 9

                  #8
                  Originally posted by JackoAC
                  Hello,
                  Guess i'm alone fo rthe problem.
                  I don't find any solution on the Internet.
                  If someone can help me it would be appreciated.

                  Kind regards,
                  Could you post journalctl -xe ouptut after starting zabbix-agent service.
                  Set zabbix owner for /run/zabbix folder.
                  Set in zabbix_agentd.conf debug level 4 or 5 and post zabbix_agentd.log here after restart service.

                  Comment


                  • JackoAC
                    JackoAC commented
                    Editing a comment
                    Hello, thanks for your answer, I've installed agent 2 and it's working properly now, so I'm going to close this ticket.
                    I'll give you the output of the zabbix agent log and Zabbix et aldready owner of this folder
                • JackoAC
                  Member
                  • May 2023
                  • 35

                  #9
                  Del.Mar
                  Here is the output from the zabbix agent file
                  Click image for larger version

Name:	Capture d'écran 2023-05-24 082342.png
Views:	1201
Size:	20.0 KB
ID:	465527

                  Comment

                  • JackoAC
                    Member
                    • May 2023
                    • 35

                    #10
                    So for the answer i couldn't find a solution so i decided to install the Zabbix agent 2 and i worked fine

                    Comment

                    • Del.Mar
                      Junior Member
                      • May 2022
                      • 9

                      #11
                      Originally posted by JackoAC
                      Del.Mar
                      Here is the output from the zabbix agent file
                      Click image for larger version

Name:	Capture d'écran 2023-05-24 082342.png
Views:	1201
Size:	20.0 KB
ID:	465527
                      Check this for example https://www.zabbix.com/documentation..._agent_as_root

                      Comment


                      • JackoAC
                        JackoAC commented
                        Editing a comment
                        Hello, yeah i've already try with the documentation :/
                    Working...