Ad Widget

Collapse

Zabbix-3.4.2 - MariaDB - error: Not found mysqlclient library

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • m4tt
    Junior Member
    • Oct 2017
    • 1

    #1

    Zabbix-3.4.2 - MariaDB - error: Not found mysqlclient library

    Hi,

    I'm trying to install zabbix from source on CentOS 7 using nginx, mariadb and php 7.1 (fpm), unfortunately during zabbix configuration I'm getting error

    "configure: error: Not found mysqlclient library"

    For DB I've installed MariaDB-server MariaDB-client and MariaDB-devel which should contain mysqlclient library.

    I'm following zabbix documentation and for configuration I'm running:

    ./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2

    Does anyone knows how to fix this problem?
  • Zephura
    Junior Member
    • Oct 2017
    • 5

    #2
    I am far from an expert, but in that case I would :

    1/ create the phpinfo web page into the zabbix-frontend to verify that nginx can access to the sql libraries
    PHP Code:
    <?php // file test.php
    phpinfo();
    ?>
    2/ test to connect to the new zabbix database with zabbix credentials; this is to tests the zabbix credentials are valids
    Code:
    mysql -u zabbix -p zabbix -h localhost zabbix
    in the case of zabbix is the login (-u zabbix)
    zabbix is the password (-p zabbix)
    the database is on localhost (-h localhost)
    and zabbix is the name of the database

    3/ if connected to the database, test it has been correctly populated
    Code:
    show tables;
    select * from dbversion;
    The first should display a lot of tables
    the second is to test it is readable
    Last edited by Zephura; 11-10-2017, 13:25. Reason: precision on the test.php location

    Comment

    • jan.garaj
      Senior Member
      Zabbix Certified Specialist
      • Jan 2010
      • 506

      #3
      Try to install mysql package. BTW: this is your setup (centos 7, php 7, nginx) https://github.com/monitoringartist/...xxl/Dockerfile, but in Dockerfile. At least, you can use it as a reference.
      Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
      My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

      Comment

      Working...