Áú»¢¶Ä²©

This is a translation of the original English documentation page. Help us make it better.

6. ????? Áú»¢¶Ä²©

????? ?????

?????? ?????? ????? ?? ????? ???? ???? ???? ???? Áú»¢¶Ä²©, ??????? ?????? ????? Áú»¢¶Ä²© ?? ????? ??????? ????? ????? Áú»¢¶Ä²©.

?????? ?????? Áú»¢¶Ä²© ????????? ????? ??????? ?? AlmaLinux 8 (x86_64).

???? ?????? ???????? ????? ????? Áú»¢¶Ä²© ?????? ?????? ?? ??? Áú»¢¶Ä²© (MySQL).

::: ???? ?? ???? ??? ???? ?????? ?????? ?? ??? ?????? ?? Áú»¢¶Ä²©. ?????? ???? ????? ?????? ????? ??????. :::

?????? ?????:
  • RAM: 1.5 GB
  • ??? ????: ?? ?????? ????? 8 GB ???? ?????????? ????????.

????? ?????? ?? ?????????/DVD ?? Áú»¢¶Ä²©:

???? Áú»¢¶Ä²© ???? ??? Áú»¢¶Ä²© (????? ????? ?? MySQL) ?-frontend.

????? ???????? ?? Áú»¢¶Ä²© ???? ???????? ?????:

  • VMware (.vmx)
  • ????? ???????????? ???? (.ovf)
  • Microsoft Hyper-V 2012 (.vhdx)
  • Microsoft Hyper-V 2008 (.vhd)
  • KVM, Parallels, QEMU, USB stick, VirtualBox, Xen (.raw)
  • KVM, QEMU (.qcow2)

??? ??????, ???? ?? ?????? ????? ????? ?-IP ?????? ???? ??? DHCP.

::: ???? ?? ???? DHCP ???? ????? ????? ?????. :::

??? ???? ?? ????? ?-IP ???? ?????? ??????????, ????:

 ??? ????? IP

??? ???? ????? ?-Zabix, ???? ?? http://<host_ip> (????? ???? ?????? ?? ????? ???? ????? ????? ???? ?-VM ??????).

?? ?????? ?? ????? ?????? ?-Hyper-V, ????? ???? ????? ?? Ctrl+Alt+F2 ??? ????? ??? ??????.

1 ??????? ?????? AlmaLinux 8

?????? ????? ?? AlmaLinux 8. ??? ??? ??????? ????? AlmaLinux ???????.

1.1 ??????

Áú»¢¶Ä²© ????? ???? ?? ???? ?-/etc/yum.repos.d:

 [zabbix]
        name=????? ????? ?? Áú»¢¶Ä²© - $basearch
        baseurl=http://repo.zabbix.com/zabbix/6.0/rhel/8/$basearch/
        ?????=1
        gpgcheck=1
        gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
1.2 ????? ???? ??

?????? ????? ????? ??? ?? iptables ?? ????? ??????? ????:

  • ????? SSH ????? (22 TCP);
  • ??? ?? ???? Áú»¢¶Ä²© (10050 TCP) ??? Áú»¢¶Ä²© Traper (10051 TCP) ??????;
  • ?????? HTTP (80 TCP) ?-HTTPS (443 TCP) ?????;
  • ??? ?????? SNMP ??? (162 UDP);
  • ????? ??????? ?????? ?????? NTP (53 UDP);
  • ???? ICMP ??????? ?-5 ???? ??????;
  • ?? ??? ???????? ??????? ??????.
1.3 ????? ?????? IP ?????

?????? ????, ?????? ????? ?-DHCP ??? ????? ?? ????? ?-IP. ???? ????? IP ?????:

  • ????? ?????? ????;
  • ??? ?? ???? /etc/sysconfig/network-scripts/ifcfg-eth0;
  • ???? ?? BOOTPROTO=dhcp ?-BOOTPROTO=none
  • ???? ?? ?????? ?????:
    • IPADDR=<????? ?-IP ?? ??????>
    • PREFIX=<?????? CIDR>
    • GATEWAY=<????? IP ?? ???>
    • DNS1=<????? IP ?? ??? DNS>
  • ???? ?? ?????? systemctl restart network.

?????? ?? Red Hat ????? ????? ????.

1.4 ????? ???? ???

?????? ????, ?????? ????? ?-UTC ???? ???? ??????. ????? ?? ???? ???, ???? ?? ????? ?????? ?-/usr/share/zoneinfo ?? /etc/localtime, ??????:

 cp /usr/share/zoneinfo/Europe/Riga /etc/localtime

2 ????? Áú»¢¶Ä²©

?????? ????? Áú»¢¶Ä²© ?? ?? ???????? ??????? ????? ???????:

2.1 ??????? (?????:?????)

?????:

  • root:zabbix

???? Áú»¢¶Ä²©:

  • ?????:zabbix

???? ????:

  • root:<?????>
  • zabbix:<?????>

??????? ??? ?????? ?????? ????? ????? ????? ????? ??????.
????? ????? ??????? ???? ????? /root/.my.cnf. ?? ?? ???? ????? ????? ??? ????? "????".

??? ????? ?? ????? ?????? ?? ??? ???????, ?? ???? ??????? ?- ???????? ?????:

  • MySQL;
  • /etc/zabbix/zabbix_server.conf;
  • /etc/zabbix/web/zabbix.conf.php.

??????? ?????? zabbix_srv ?-zabbix_web ??????? ???? ???? ?????? ??????.

2.2 ?????? ?????
  • ????? ????? ??????? ?-/etc/zabbix.
  • ??? Áú»¢¶Ä²©, ?????? ????? ???? ???? ?????? ? /var/log/zabbix.
  • ???? ????? ?? Áú»¢¶Ä²© ????? ?-/usr/share/zabbix.
  • ?????? ???? ?? ?????? zabbix ??? /var/lib/zabbix.
2.3 ??????? ?????? Áú»¢¶Ä²©
  • ???? ???? ?? Frontend ????? ???????/???? (???? ????? ??? ? /etc/php-fpm.d/zabbix.conf);

3 ???? ?????

?????? ????, ???? ?-frontend ????? ??? ????.

???? ???? ?-frontend ?????? http://<host>.

???? ?????? ??? ?-/etc/nginx/conf.d/zabbix.conf. ?-Nginx ?? ?????? ???? ???? ????? ???? ??. ??? ??, ????? ??????? SSH as ???? ????? ??????:

 systemctl ???? ???? ?? nginx

4 ???? ??

?????? ????, ?? ??????? ??????? ?-configuration ???????? ????? ??????. ?????? ????? ??????, ??? ?? ????? "/etc/sysconfig/iptables" ???? ???? ???? ?? ?????:

 systemctl ??? ???? iptables

5 ?????

?????? ?????? Áú»¢¶Ä²© ?????? ???????. ??? ????? ???, ????:

 ????? dnf zabbix*

6 ?????? ?????

?????? Systemd ??????:

 systemctl list-units zabbix*

7 ????? ???????? ??????

7.1 VMware

??????? ?????? vmdk ?????? ?????? ?????? ?-VMware Player, Server ?????? Workstation. ?????? ?-ESX, ESXi ?-vSphere ?? ?????? ????? ???? ??????? .

7.2 HDD/????? ???? (??????)
 dd if=./zabbix_appliance_5.2.0.raw of=/dev/sdc bs=4k conv=fdatasync

???? ?? /dev/sdc ????? ???? Flash/HDD ???.