Installing
-
2. Installing
Now to Install Zabbix on Arch Linux
Server with PostgreSQL DB:sudo pacman -S zabbix-server-pgsql zabbix-frontend-php zabbix-apache-conf zabbix-agent
Alternatively, for a MySQL/MariaDB setup use:
sudo pacman -S zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent
-
3. Making DB
Again Creating Zabbix PostgreSQL Database.
sudo -iu postgres
createuser --pwprompt zabbix; createdb -O zabbix zabbix; exit
Then Import the Database Schema:
zcat /usr/share/zabbix-server-pgsql/schema.sql.gz | psql -U zabbix zabbix; zcat /usr/share/zabbix-server-pgsql/images.sql.gz | psql -U zabbix zabbix; zcat /usr/share/zabbix-server-pgsql/data.sql.gz | psql -U zabbix zabbix
-
4. Editing Configuration
Next Edit Zabbix Server Configuration File.
sudo nano /etc/zabbix/zabbix_server.conf
Set the same password you chose before:
DBHost=localhost DBName=zabbix DBUser=zabbix DBPassword=[zabbix_password]
Simply set your custom [zabbix_password] and save (Ctrl+x → y → Enter).
-
5. Editing Frontend Config
Now to Edit Zabbix Apache Frontend Configuration.
sudo nano /etc/httpd/conf/extra/zabbix.conf
Uncomment and set your timezone like:
php_value date.timezone Europe/Oslo
Adjust the Timezone for your location.
-
6. Starting Server
To Enable and Start Zabbix Services
Run:sudo systemctl enable --now zabbix-server zabbix-agent httpd php-fpm
Then check everything is running:
sudo systemctl status zabbix-server
-
7. Getting Started
Now open your Browser and go to:
http://localhost/zabbix
Follow the Web Installer to complete the setup.
Contents