Zabbix alt
Содержание
Zabbix на Alt P10 jeos
Источник: здесь
Подготовка
apt-get update && apt-get -y dist-upgrade
apt-get install -y nano update-kernel
update-kernel -y
reboot
Postgresql
Установка
apt-get install -y postgresql16-server
Первоначальный запуск
/etc/init.d/postgresql initdb
cat << 'EOF' > /var/lib/pgsql/data/pg_hba.conf # TYPE DATABASE USER ADDRESS METHOD # "local" is for Unix domain socket connections only local all all trust # IPv4 local connections: host all all 127.0.0.1/32 trust host all all 0.0.0.0/0 md5 # Allow replication connections from localhost, by a user with the # replication privilege. local replication all trust host replication all 127.0.0.1/32 trust EOF
systemctl enable --now postgresql
Создать пользователя, базу данных и задать пароль
psql -U postgres -c "CREATE USER zabbix_user WITH ENCRYPTED PASSWORD 'zabbix_pass';" psql -U postgres -c "CREATE DATABASE zabbix_db;" psql -U postgres -c "GRANT ALL PRIVILEGES ON DATABASE zabbix_db TO zabbix_user;"
Проверить
psql -U zabbix_user -W zabbix_db -c "\l"
Zabbix server
apt-get install zabbix-server-pgsql -y