Giter Club home page Giter Club logo

zabbix-hw's Introduction

Домашняя работа к занятию «Система мониторинга Zabbix» - Боровик А. А.

Задание 1

Ответ:

  1. Авторизация Авторизация

  2. Команды

# Устанавливаю PostgreSQL
apt install postgresql

# Устанавливаю репозиторий Zabbix
wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.0-4+ubuntu22.04_all.deb

dpkg -i zabbix-release_6.0-4+ubuntu22.04_all.deb

apt update

# Устанавливаю Zabbix-сервер и Web-интерфейс
apt install zabbix-server-pgsql zabbix-frontend-php php8.1-pgsql zabbix-apache-conf zabbix-sql-scripts

# Устанавливаю и запускаю сервер базы данных
su - postgres -c 'psql --command "CREATE USER zabbix WITH PASSWORD '\'123456789\'';"'

su - postgres -c 'psql --command "CREATE DATABASE zabbix OWNER zabbix;"'

# Импортирую первычные скрипты
zcat /usr/share/zabbix-sql-scripts/postgresql/server.sql.gz | sudo -u zabbix psql zabbix

# Редактирую файл zabbix_server.conf
sed -i 's/# DBPassword=/DBPassword=123456789/g' /etc/zabbix/zabbix_server.conf

# Запускаю сервера Zabbix и Apache
systemctl restart zabbix-server apache2

systemctl enable zabbix-server apache2

# Проверяю работу серверов
systemctl status zabbix-server

systemctl status apache2

Задание 2

Ответ:

  1. Хосты доступны

Хосты доступны

  1. Логи агентов

Лог агента 1

Лог агента 2

  1. Последние данные

Последние данные

  1. Команды
# Устанавливаю репозиторий Zabbix
wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.0-4+ubuntu22.04_all.deb

dpkg -i zabbix-release_6.0-4+ubuntu22.04_all.deb

apt update

# Устанавливаю Zabbix агент
apt install zabbix-agent

# Запускаю Zabbix агент
systemctl restart zabbix-agent

systemctl enable zabbix-agent

# Проверяю Zabbix агент
systemctl status zabbix-agent

# Правлю конфиг
sed -i 's/Server=127.0.0.1/Server=192.168.0.138'/g' /etc/zabbix/zabbix_agentd.conf

Задание 3*

Ответ:

zabbix-hw's People

Contributors

lex-chaos avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.