Ad Widget

Collapse

email configuration, media types, zabbix 6.4.6 docker-compose

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gpgp01
    Junior Member
    • Jul 2023
    • 12

    #1

    email configuration, media types, zabbix 6.4.6 docker-compose

    Good morning,
    I installed zabbix with docker-compose, see attachment ,

    this the command on linux:
    docker compose -f ./docker-compose_v3_centos_mysql_local.yaml up -d

    when configuring the media type, after the test an error appears:

    Details Media type test failed.
    An unknown option was passed in to libcurl​​


    please help me.
    Attached Files
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    Looks like the centos that you are picking up is too old. Try some newer OS.

    Comment

    • gpgp01
      Junior Member
      • Jul 2023
      • 12

      #3
      this is the OS.
      Enterprise Linux release 8.8 (Ootpa)
      CentOS Stream release 9​

      thanks
      please help me.

      Comment

      • dimir
        Zabbix developer
        • Apr 2011
        • 1080

        #4
        What's your curl version on the host where Zabbix server is running?
        Code:
        rpm -qa | grep -i curl
        ​

        Comment

        • gpgp01
          Junior Member
          • Jul 2023
          • 12

          #5
          Hello

          zabbix-docker-zabbix-web-nginx-mysql-1
          libcurl-minimal-7.76.1-26.el9.x86_64
          curl-minimal-7.76.1-26.el9.x86_64

          zabbix-docker-zabbix-server-1
          libcurl-minimal-7.76.1-26.el9.x86_64
          curl-minimal-7.76.1-26.el9.x86_64

          zabbix-docker-mysql-server-1
          libcurl-7.61.1-30.el8_8.3.x86_64
          curl-7.61.1-30.el8_8.3.x86_64​

          thanks

          Comment

          • dimir
            Zabbix developer
            • Apr 2011
            • 1080

            #6
            I think you need libcurl (not libcurl-minimum) on zabbix-docker-zabbix-server-1.

            Comment

            • gpgp01
              Junior Member
              • Jul 2023
              • 12

              #7
              Originally posted by dimir
              I think you need libcurl (not libcurl-minimum) on zabbix-docker-zabbix-server-1.
              please help me.
              look at the docker-compose file attachment
              please help me to install libcurl on zabbix-docker-zabbix-server-1

              thanks
              Attached Files

              Comment

              • dimir
                Zabbix developer
                • Apr 2011
                • 1080

                #8
                First, in order to test it, log in to that host and run
                Code:
                dnf -y install libcurl
                And see what happens. If all looks good, try testing the email again.

                Or try another image, Alpine Linux, for example.
                Last edited by dimir; 26-09-2023, 17:33.

                Comment

                • gpgp01
                  Junior Member
                  • Jul 2023
                  • 12

                  #9
                  thanks for replay.
                  this is the problem:

                  [root@66d3e4be9f17 zabbix]# dnf -y install libcurl
                  Last metadata expiration check: 0:00:37 ago on Tue Sep 26 15:38:43 2023.
                  Error:
                  Problem: problem with installed package libcurl-minimal-7.76.1-26.el9.x86_64
                  - package libcurl-minimal-7.76.1-26.el9.x86_64 from system conflicts with libcurl(x86-64) provided by libcurl-7.76.1-26.el9.x86_64 from baseos
                  - package libcurl-minimal-7.76.1-20.el9.x86_64 from baseos conflicts with libcurl(x86-64) provided by libcurl-7.76.1-26.el9.x86_64 from baseos
                  - package libcurl-minimal-7.76.1-21.el9.x86_64 from baseos conflicts with libcurl(x86-64) provided by libcurl-7.76.1-26.el9.x86_64 from baseos
                  - package libcurl-minimal-7.76.1-22.el9.x86_64 from baseos conflicts with libcurl(x86-64) provided by libcurl-7.76.1-26.el9.x86_64 from baseos
                  - package libcurl-minimal-7.76.1-23.el9.x86_64 from baseos conflicts with libcurl(x86-64) provided by libcurl-7.76.1-26.el9.x86_64 from baseos
                  - package libcurl-minimal-7.76.1-26.el9.x86_64 from baseos conflicts with libcurl(x86-64) provided by libcurl-7.76.1-26.el9.x86_64 from baseos
                  - cannot install the best candidate for the job
                  (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
                  [root@66d3e4be9f17 zabbix]#


                  PLEASE HELP ME​

                  Comment

                  • dimir
                    Zabbix developer
                    • Apr 2011
                    • 1080

                    #10
                    How about
                    Code:
                    dnf -y --allowerasing install libcurl
                    ?

                    Comment

                    • gpgp01
                      Junior Member
                      • Jul 2023
                      • 12

                      #11
                      Originally posted by dimir
                      How about
                      Code:
                      dnf -y --allowerasing install libcurl
                      ?


                      hello problem not resolv

                      An unknown option was passed in to libcurl


                      [root@66d3e4be9f17 zabbix]# dnf -y --allowerasing install libcurl
                      Last metadata expiration check: 1:21:31 ago on Tue Sep 26 15:38:43 2023.
                      Dependencies resolved.
                      ================================================== ================================================== ================================================== ================================================== ===============================
                      Package Architecture Version Repository Size
                      ================================================== ================================================== ================================================== ================================================== ===============================
                      Installing:
                      libcurl x86_64 7.76.1-26.el9 baseos 285 k
                      Installing dependencies:
                      libbrotli x86_64 1.0.9-6.el9 baseos 314 k
                      libpsl x86_64 0.21.1-5.el9 baseos 64 k
                      publicsuffix-list-dafsa noarch 20210518-3.el9 baseos 58 k
                      Removing dependent packages:
                      libcurl-minimal x86_64 7.76.1-26.el9 system 506 k
                      Downgrading:
                      curl-minimal x86_64 7.76.1-20.el9 baseos 130 k

                      Transaction Summary
                      ================================================== ================================================== ================================================== ================================================== ===============================
                      Install 4 Packages
                      Remove 1 Package
                      Downgrade 1 Package
                      Total download size: 851 k
                      Downloading Packages:
                      (1/5): libcurl-7.76.1-26.el9.x86_64.rpm 273 kB/s | 285 kB 00:01
                      (2/5): curl-minimal-7.76.1-20.el9.x86_64.rpm 123 kB/s | 130 kB 00:01
                      (3/5): libbrotli-1.0.9-6.el9.x86_64.rpm 297 kB/s | 314 kB 00:01
                      (4/5): libpsl-0.21.1-5.el9.x86_64.rpm 3.0 MB/s | 64 kB 00:00
                      (5/5): publicsuffix-list-dafsa-20210518-3.el9.noarch.rpm 2.7 MB/s | 58 kB 00:00
                      ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
                      Total 670 kB/s | 851 kB 00:01
                      Running transaction check
                      Transaction check succeeded.
                      Running transaction test
                      Transaction test succeeded.
                      Running transaction
                      Preparing : 1/1
                      Installing : publicsuffix-list-dafsa-20210518-3.el9.noarch 1/7
                      Installing : libpsl-0.21.1-5.el9.x86_64 2/7
                      Installing : libbrotli-1.0.9-6.el9.x86_64 3/7
                      Installing : libcurl-7.76.1-26.el9.x86_64 4/7
                      Downgrading : curl-minimal-7.76.1-20.el9.x86_64 5/7
                      Cleanup : curl-minimal-7.76.1-26.el9.x86_64 6/7
                      Erasing : libcurl-minimal-7.76.1-26.el9.x86_64 7/7
                      Running scriptlet: libcurl-minimal-7.76.1-26.el9.x86_64 7/7
                      Verifying : curl-minimal-7.76.1-20.el9.x86_64 1/7
                      Verifying : curl-minimal-7.76.1-26.el9.x86_64 2/7
                      Verifying : libbrotli-1.0.9-6.el9.x86_64 3/7
                      Verifying : libcurl-7.76.1-26.el9.x86_64 4/7
                      Verifying : libpsl-0.21.1-5.el9.x86_64 5/7
                      Verifying : publicsuffix-list-dafsa-20210518-3.el9.noarch 6/7
                      Verifying : libcurl-minimal-7.76.1-26.el9.x86_64 7/7

                      Downgraded:
                      curl-minimal-7.76.1-20.el9.x86_64
                      Installed:
                      libbrotli-1.0.9-6.el9.x86_64 libcurl-7.76.1-26.el9.x86_64 libpsl-0.21.1-5.el9.x86_64 publicsuffix-list-dafsa-20210518-3.el9.noarch
                      Removed:
                      libcurl-minimal-7.76.1-26.el9.x86_64

                      Complete!​

                      Comment

                      • dimir
                        Zabbix developer
                        • Apr 2011
                        • 1080

                        #12
                        Then, I have no idea. I'd remove libcurl-minimal and try restarting zabbix-server. But this is really not my world. I use debian and never used docker compose. So, hopefully someone else could interfere.

                        UPD: How about
                        Code:
                        dnf -y --allowerasing install libcurl-full
                        ?
                        Last edited by dimir; 27-09-2023, 12:52.

                        Comment

                        • dimir
                          Zabbix developer
                          • Apr 2011
                          • 1080

                          #13
                          Similar case: https://support.zabbix.com/browse/ZBX-22946

                          Comment

                          • dimir
                            Zabbix developer
                            • Apr 2011
                            • 1080

                            #14
                            The issue was fixed, gpgp01, please try again the docker compose command.

                            Comment

                            Working...