$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

How to Install Zabbix on Linux Mint 22 – Step-by-step

August 7, 2024 | By the+gnu+linux+evangelist.

Installing

  1. 3. Installing Zabbix

    To install Zabbix for Ubuntu
    Server with MySQL DB:

    sudo apt install zabbix-server-mysql

    For the PostgreSQL version:

    sudo apt install zabbix-server-pgsql

    Then install the Agent:

    sudo apt install zabbix-agent

    For the Frontend PHP:

    sudo apt install zabbix-frontend-php

    Choose between the Apache Web Server:

    sudo apt install zabbix-apache-conf

    Or NGINX:

    sudo apt install zabbix-nginx-conf
  2. 4. Making DB

    Creating Zabbix MySQL Database

    mysql -uroot -p[root_password]

    Login with your [root_password].
    Then create the database:

    create database zabbix character set utf8 collate utf8_bin;

    Grant the privileges to the ‘zabbix’ user:

    grant all privileges on zabbix.* to zabbix@localhost identified by '[zabix_password]';

    Set a custom [zabix_password] for the zabbix user.
    Finally, to quit:

    quit;

    For the PostgreSQL database, follow this guide

  3. 5. Editing Configuration

    Edit Zabbix Server Configuration File

    sudo nano /etc/zabbix/zabbix_server.conf

    Set the password you chose earlier:

    DBHost=localhost
    DBName=zabbix
    DBUser=zabbix
    DBPassword=[zabix_password]
    

    Simply set the [zabix_password] in the above!
    Ctrl+x to save & exit from nano ;)

  4. 6. Importing Data

    Import Zabbix Data into Database
    For MySQL:

    zcat /usr/share/doc/zabbix-server-mysql/create.sql.gz | mysql -uzabbix -p zabbix

    For PostgreSQL:

    zcat /usr/share/doc/zabbix-server-pgsql/create.sql.gz | sudo -u zabbix psql zabbix
  5. 7. Editing Frontend Config

    Edit the Zabbix PHP Frontend Configuration File
    Uncomment the “date.timezone” setting:

    sudo nano /etc/zabbix/apache.conf

    Uncomment this line like:

    php_value date.timezone Europe/Paris

    Set the right time zone for you…

Contents


Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,