Ad Widget

Collapse

Can not install Zabbix-Server-Mysql

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dcoan
    Junior Member
    • Jul 2022
    • 4

    #1

    Can not install Zabbix-Server-Mysql

    Hello!

    I'm currently in the process of configuring a VM to learn Zabbix but I keep running into issue after issue trying to install the Server/frontend/agent.

    Quick info:

    Zabbix 5.0 LTS
    Ubuntu 20.04 (Focal) Server LTS
    MySQL
    Apache Web Server.

    Steps taken:

    1. Install Ubunto 20.04 on Oracle VM Virtual Box
    2. Complete installation configuration with OpenSSH (No additional server options)
    3. Install/configure mariadb
    4. Install/configure apache2
    5. Install Zabbix (This is where we are.)

    You can follow along with this zabbix guide: https://www.zabbix.com/download?zabb...focal&db=mysql

    See Step 2 Part B which instructs: # apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent

    all versions of # apt install zabbix-server-mysql come back with unmet dependencies of:
    libldap-2.4-2
    libsnmp35
    and libssl1.1

    So far I am stuck trying to install libsnmp35 as I have no way of acquiring it. Aptitude has failed to install it and rmadison libsnmp35 reads back 5.8+dsfg-2ubuntu2.3" and quite frankly I don't know what to do with that.
    Additionally, libldap-2.4-2 reads back to me that I need to install libldap-common, which is acquirable through apt install. I have not attempted libssl1.1 yet.

    Hopefully this makes a bit of sense to someone. I will most likely need more help. Thanks in advance!
  • Answer selected by dcoan at 12-07-2022, 21:45.
    dcoan
    Junior Member
    • Jul 2022
    • 4

    We have a winner. I'm using 22.04.

    Comment

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

      #2
      Do you have a specific reason for installing the previous-generation Zabbix server? Installing Zabbix 6.0 LTS will give you the latest long-live release with the latest database settings.

      That may also resolve your dependency problems (just thinking because 6.0 server was just released a while ago for Ubuntu 20.04).

      Markku

      Comment

      • Ostad
        Junior Member
        • Jul 2022
        • 10

        #3
        try to update apt and and install libraries with apt-get


        sudo apt-get update
        sudo apt-get install libssl1.1
        sudo apt-get install libldap-2.4-2
        sudo apt-get install libsnmp35

        I recommend you to install Zabbix 6.0 LTS, as Markku said.

        Comment

        • dcoan
          Junior Member
          • Jul 2022
          • 4

          #4
          try to update apt and and install libraries with apt-get


          sudo apt-get update
          sudo apt-get install libssl1.1
          sudo apt-get install libldap-2.4-2
          sudo apt-get install libsnmp35

          I recommend you to install Zabbix 6.0 LTS, as Markku said.
          Thank you, but none of those packages are available for installation. Currently I'm learning how to install Zabbix from the ground up and 5.0 LTS is the version of Zabbix we have installed on our machines. Are all of these packages unavailable? As far as I'm aware 5.0 LTS has and End of Life date of May 31, 2023.

          To reiterate: I am not using 6.0 because we are using 5.0 LTS in a live environment. I can not simply upgrade the system to 6.0 LTS on my own.
          Thank you again!

          Comment

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

            #5
            Sorry but I'm unable to reproduce your problems. I am able to successfully install Ubuntu 20.04, then mariadb-server and apache2, and finally Zabbix 5.0 server, with the instructions in https://www.zabbix.com/download?zabb...focal&db=mysql, with no dependency problems.

            Code:
            $ lsb_release -a
            No LSB modules are available.
            Distributor ID: Ubuntu
            Description: Ubuntu 20.04.4 LTS
            Release: 20.04
            Codename: focal
            Code:
            $ dpkg -l zabbix\*
            Desired=Unknown/Install/Remove/Purge/Hold
            | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
            |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
            ||/ Name                Version          Architecture Description
            +++-===================-================-============-================================================== =====================
            ii  zabbix-agent        1:5.0.25-1+focal amd64        Zabbix network monitoring solution - agent
            ii  zabbix-apache-conf  1:5.0.25-1+focal all          Zabbix network monitoring solution - apache configuration for front-end
            ii  zabbix-frontend-php 1:5.0.25-1+focal all          Zabbix network monitoring solution - PHP front-end
            un  zabbix-nginx-conf   <none>           <none>       (no description available)
            ii  zabbix-release      1:5.0-1+focal    all          Zabbix official repository configuration
            ii  zabbix-server-mysql 1:5.0.25-1+focal amd64        Zabbix network monitoring solution - server (MySQL)
            un  zabbix-server-pgsql <none>           <none>       (no description available)
            Markku

            Comment

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

              #6
              Code:
              $ dpkg -l libldap*
              ...
              un libldap-2.3-0       <none> <none> (no description available)
              ii libldap-2.4-2:amd64 2.4.49+dfsg-2ubuntu1.9 amd64 OpenLDAP libraries
              ii libldap-common      2.4.49+dfsg-2ubuntu1.9 all OpenLDAP common files for libraries
              un libldap2            <none> <none> (no description available)
              
              $ dpkg -l libsnmp*
              ...
              ii libsnmp-base    5.8+dfsg-2ubuntu2.3 all SNMP configuration script, MIBs and documentation
              ii libsnmp35:amd64 5.8+dfsg-2ubuntu2.3 amd64 SNMP (Simple Network Management Protocol) library
              
              $ dpkg -l libssl*
              ...
              ii libssl1.1:amd64 1.1.1f-1ubuntu2.16 amd64 Secure Sockets Layer toolkit - shared libraries
              I did the usual full "apt upgrade" on the system before installing Zabbix.

              Markku
              Last edited by Markku; 12-07-2022, 20:58.

              Comment

              • dcoan
                Junior Member
                • Jul 2022
                • 4

                #7
                Click image for larger version

Name:	z.png
Views:	9777
Size:	99.0 KB
ID:	447758

                Unfortunately I've started the process over repeatedly and I always end right here. Apt-get, aptitude, etc. I'm quite lost on why I'm having this problem.

                Comment

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

                  #8
                  sudo apt purge zabbix-server-mysql
                  sudo apt update
                  sudo apt upgrade

                  What do you get?

                  Markku

                  Comment

                  • dcoan
                    Junior Member
                    • Jul 2022
                    • 4

                    #9
                    Click image for larger version

Name:	z2.png
Views:	9734
Size:	281.6 KB
ID:	447762
                    I was never able to install zabbix-server-mysql so it was not purged. I have done apt update/upgrade as well.

                    Comment

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

                      #10
                      You have configured something incorrectly: jammy is the codename for 22.04.

                      So do you have 20.04 or 22.04?

                      lsb_release -a

                      Markku

                      Comment

                      • dcoan
                        Junior Member
                        • Jul 2022
                        • 4

                        #11
                        We have a winner. I'm using 22.04.

                        Comment

                        Working...