Ad Widget

Collapse

Splitting Zabbix server and database in Cloud

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Vedior
    Junior Member
    • Apr 2021
    • 7

    #1

    Splitting Zabbix server and database in Cloud

    Hi all! I have managed to install Zabbix entirely and correctly on 1 and the same server. However I am new to Zabbix and for some project I am trying to install the Zabbix software too on 2 separate cloud servers: 1 with the server and frontend on (Zabbixserver) and the other with the database on (Zabbixdatabase).
    Both are running Ubuntu 20.04 LTS.
    I've downloaded the repo on both the servers, installed the first components on Zabbixserver with "apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent" and installed mysql on Zabbixdatabase with "apt install mysql-server". I then proceeded on Zabbixdatabase with the steps as described on the site on point c) Create Initial Database. (literally doing what is says)
    When I then return to Zabbixserver to import initial schema and data I get an error message saying: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2). I adjusted the server conf file pointing the IP adres of where Zabbixdatabase is located on DBhost (is it just the IP or do I need to add subnetmask too?) and updated the DBpaswoord with what I had entered.
    Do I need to install mysql on Zabbixserver too maybe? It doesn't really make much sense, or does it? Help a noob out please?
Working...