Zabbix 5.2 Postgresql 13 Centos8 Apache Install
1. PostgreSQL13 Installとsetup
--postgresのバスワードを設定変更するのを忘れないように注意
su postgres
psql
alter role postgres with password 'Passwd643';
----
pg_hba.confとpostgres.confを設定して、外部のPgAdminなとから、接続できるか確認する
で、postgres.confのチューニングも可能
2. ファイアーウォールとSELinuxの無効化をして、システム再起動
firewall-cmd --add-port=5432/tcp --zone=public --permanent
firewall-cmd --add-port=10051/tcp --zone=public --permanent
firewall-cmd --add-service=http --zone=public --permanent
firewall-cmd --add-port=5432/tcp --zone=public --permanent
sed -i -e "s/^SELINUX=enforcing$/SELINUX=disabled/g" /etc/selinux/config
systemctl reboot
3. システム再起動後、SELinuxの無効化の確認
getenforce
4.
dnf -y module install httpd
5.
dnf -y module install php
6. Install and configure Zabbix server for your platformのコマンドを実行
---------------------------
a. Install Zabbix repository
# dnf clean all
---------------------------
b. Install Zabbix server, frontend, agent
# dnf install zabbix-server-pgsql zabbix-web-pgsql zabbix-apache-conf zabbix-agent
yで進む
---------------------------
c. Create initial database / Make sure you have database server up and running. /Run the following on your database host.
# sudo -u postgres createuser --pwprompt zabbix
# sudo -u postgres createdb -O zabbix zabbix
On Zabbix server host import initial schema and data. You will be prompted to enter your newly created password.
# zcat /usr/share/doc/zabbix-server-pgsql*/create.sql.gz | sudo -u zabbix psql zabbix
---------------------------
---------------------------
e. Start Zabbix server and agent processes
Start Zabbix server and agent processes and make it start at system boot.
# systemctl restart zabbix-server zabbix-agent httpd php-fpm
# systemctl enable zabbix-server zabbix-agent httpd php-fpm
---------------------------
f. Zabbixフロントエンドの設定
Connect to your newly installed Zabbix frontend: http://server_ip_or_name/zabbix
Follow steps described in Zabbix documentation: Installing frontend
127.0.0.1/zabbix
初期ログイン
Admin (Aが大文字です)
zabbix
---------------------------
127.0.0.1 で、 apacheの初期画面が表示
---------------------------
127.0.0.1 /zabbix で、 zabbixの初期画面が表示
01
02
03
04 PostgreSQL の パスワードを入力
05
06
07
08
09
10
11
12
pgAdmin4からアクセス