Coder Social home page Coder Social logo

9_2's Introduction

Домашнее задание к занятию "9.2 «Zabbix. Часть 1»" - Дьяконов Алексей

Задание 1

Установка Zabbix 6.4 + Posgresql + Nginx на Debian 11

-1. Ставим базу данных:

  • apt install postgresql`

-2. Ставим репозиторий Zabbix:

-3. Ставим Zabbix сервер, веб-интерфейс и агент:

  • apt install zabbix-server-pgsql zabbix-frontend-php php7.4-pgsql zabbix-nginx-conf zabbix-sql-scripts zabbix-agent

-4. Создаём базу и пользователя:

  • sudo -u postgres createuser --pwprompt zabbix
  • sudo -u postgres createdb -O zabbix zabbix

-5. Импортируем начальную схему и данные:

  • zcat /usr/share/zabbix-sql-scripts/postgresql/server.sql.gz | sudo -u zabbix psql zabbix

-6. Правим пароль /etc/zabbix/zabbix_server.conf

-7. Раскомментируем в файле /etc/zabbix/nginx.conf директивы 'listen' и 'server_name'. Незабываем присваивать server_name.

-8. Запустим процессы Zabbix и добавим в автозагрузку:

  • systemctl restart zabbix-server zabbix-agent nginx php7.4-fpm
  • systemctl enable zabbix-server zabbix-agent nginx php7.4-fpm

-Скриншот авторизации

Задание 2

Установка zabbix-agent2:

-1. Ставим репозиторий Zabbix:

-2. Ставим zabbix-agent2:

  • apt install zabbix-agent2 zabbix-agent2-plugin-*

-3. Правим /etc/zabbix/zabbix-agent2.conf. Прописываем адрес сервера

-4. Запускаем агент и добавляем в автозагрузку:

  • systemctl restart zabbix-agent2
  • systemctl enable zabbix-agent2

-5. Создаем хосты на сервере и добаляем к ним темплейты

Раздел Configuration > Hosts я не нашёл, поэтому прикладываю скриншот раздела Data Collection > Hosts

-Data Collection > Hosts

-скриншот vm1

-скриншот vm2

-скриншот Monitoring > Latest для vm1

-скриншот Monitoring > Latest для vm2

Задание 3

Не нашел подходящий итем в темплейте и создал свой:

-item

-скриншот Latest > Data

9_2's People

Contributors

alex091987 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.