MariaDB Xpand Monitoring with Zabbix

Install Zabbix

  1. Configure repositories and install Zabbix Server and Front-end

    $ sudo rpm -ivh
    $ sudo yum-config-manager --enable rhel-7-server-optional-rpms
    $ sudo yum install zabbix-server-mysql zabbix-web-mysql
  2. Confirm that MariaDB Enterprise Server is installed correctly:

    $ systemctl status mariadb

    If MariaDB Enterprise Server is not installed, please refer to Deployment Guide.

  3. Ensure that default character set is utf8 by the following to a MariaDB configuration file:

    default_character_set = utf8

Configure Zabbix Server

Perform the following procedure on the MariaDB Enterprise Server node that will store the Zabbix database.

  1. Create user account and grant privileges for Zabbix to use:

    TO zabbix@localhost IDENTIFIED BY 'zabbixpwd';
  2. Import the initial schema and data for Zabbix:

    $ zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
  3. Configure Zabbix to use the database in /etc/zabbix/zabbix_server.conf:

    DBHost     = localhost
    DBName     = zabbix
    DBUser     = zabbix
    DBPassword = zabbixpwd

SELinux Configuration

If SELinux is enabled, allow communication between Zabbix front-end and the MariaDB Enterprise Server node that will store the Zabbix database:

$ sudo setsebool \
      -P httpd_can_connect_zabbix=on \

Start Zabbix Server and Front-end

Start services and set to start at boot:

$ sudo systemctl start zabbix-server
$ sudo systemctl enable zabbix-server
$ sudo systemctl start httpd
$ sudo systemctl enable httpd

Configure Zabbix Front-end

  1. Configure Timezone (/etc/httpd/conf.d/zabbix.conf)

    php_value date.timezone America/Los_Angeles
  2. Browse to: http://<zabbix-server-address>/zabbix

  3. Click "Next Step"

  4. Confirm that prerequisites are all correctly installed and click "Next Step"

  5. Configure DB connection fields (use MySQL for Database type) and click "Next Step"

  6. Configure Zabbix server details and click "Next Step"

  7. Review Pre-installation summary and click "Next Step"

  8. Click "Finish"

Configure Zabbix Agent

Perform the following procedure on each Xpand node to install the Zabbix agent.

  1. Create user account for the Zabbix Agent:

    GRANT USAGE ON *.* TO 'zabbix'@'%' IDENTIFIED BY 'zabbixpwd';
  2. Configure the Zabbix repository:

    $ sudo rpm -ivh
  3. Install the Zabbix agent:

    $ sudo yum install zabbix-agent
  4. Configure the Zabbix agent to communicate with the Zabbix Server in zabbix_agent.conf:

    Server       = <zabbix_server_ip>        # Zabbix Server IP address
    ServerActive = <zabbix_server_ip>        # Zabbix Server IP address
    Hostname     = <zabbix_server_hostname>  # Zabbix hostname
  5. Install Xpand userparameter_mysql.conf

    $ wget <userparameter_mysql.conf>
    $ cp ~/userparameter_mysql.conf /etc/zabbix/zabbix_agentd.d/
  6. Configure Zabbix login credentials

  7. Restart Zabbix Agent

    $ sudo systemctl restart zabbix-agent