====== zabbix ====== [[https://www.zabbix.com/ru]]\\ [[https://www.zabbix.com/documentation/current/ru/manual]]\\ > [[https://www.zabbix.com/documentation/current/ru/manual/appendix/time_period]] [[https://repo.zabbix.com/]] - репозитарий ---- [[https://www.zabbix.com/download?zabbix=5.2&os_distribution=raspbian&os_version=10_buster&db=mysql&ws=apache]] - для Raspbian\\ [[https://share.zabbix.com/]]\\ [[https://serveradmin.ru/ustanovka-i-nastroyka-zabbix-3-4-na-debian-9/]]\\ [[https://itproffi.ru/zabbix-avtoregistratsiya-uzlov/|Zabbix. Авторегистрация узлов]]\\ [[https://itproffi.ru/aktivnyj-i-passivnyj-zabbix-agent/|Активный и пассивный zabbix агент]]\\ [[https://bestmonitoringtools.com/how-to-install-zabbix-on-raspberry-pi-raspbian/]] {{it:zabbix:how_to_install_zabbix_5_on_raspberry_pi.mht|mht}} - How to Install Zabbix 5 on Raspberry Pi (Step-by-Step Guide)\\ [[https://bestmonitoringtools.com/install-zabbix-proxy-on-raspberry-pi/]] {{it:zabbix:install_zabbix-proxy_on_raspberry_pi_-rpi-_in_10_minutes-.mhtml|mht}} - Install Zabbix-Proxy on Raspberry Pi (RPi) in 10 minutes! -есть про оптимизацию для Raspberry Pi\\ [[https://bestmonitoringtools.com/how-to-install-zabbix-server-on-debian/]] {{it:zabbix:how_to_install_zabbix_5-0_or_5-2_on_debian_10_-_9_-step-by-step-.mhtml|mht}} - How to Install Zabbix 5.0 or 5.2 on Debian 10 / 9 [Step-by-Step]\\ [[https://opensofty.com/2019/9/24/как-установить-zabbix-на-raspberry-pi-3/]]\\ [[https://hellsman.ru/admin/linux/monitorim-temperaturu-raspberry-pi-v-zabbix]] - {{it:zabbix:monitorim_temperaturu_raspberry_pi_v_zabbix_-_blog_hellsman-a.mhtml|mht}} Мониторим температуру Raspberry Pi в Zabbix\\ [[https://gitlab.com/Qrl/zabbix|Zabbix Templates: Linux Active,Raspberry Pi CPU,NAS filesystem]]\\ [[https://habr.com/ru/post/220073/|Zabbix + Iostat: мониторинг дисковой подсистемы]] {{it:zabbix:zabbix_-_iostat-_monitoring_diskovoj_podsistemy_-_xabr.mhtml|mht}}\\ [[https://habr.com/ru/company/postgrespro/blog/558512/|Мониторинг 95+ метрик PostgreSQL с помощью плагина Zabbix Agent 2]]\\ [[https://github.com/vovka1200/zabbix-hddtemp/blob/master/zabbix_agentd.conf.d/hddtemp.conf]] - hddtemp.conf ---- __**Ошибки и решения**__\\ [[https://www.zabbix.com/forum/in-russian/32919-zabbix-discoverer-processes-more-than-75-busy|Zabbix discoverer processes more than 75% busy]]\\ ---- __**Требуется**__\\ iostat (пакет sysstat) -для мониторинга дисков\\ hddtemp ---- //__Установка сервера на Raspberry PI__// > $ sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-agent > $ sudo mysql -u root -p > MariaDB> grant all privileges on zabbix.* to zabbix@localhost identified by 'PASS'; innodb_strict_mode=0 > $ zcat /usr/share/zabbix-server-mysql/schema.sql.gz | mysql -uzabbix -p'zabbix' zabbix > $ zcat /usr/share/zabbix-server-mysql/images.sql.gz | mysql -uzabbix -p'zabbix' zabbix > $ zcat /usr/share/zabbix-server-mysql/data.sql.gz | mysql -uzabbix -p'zabbix' zabbix DBPassword=PASS php_value date.timezone Europe/Moscow > $ cd /etc/apache2/conf-enabled/ > $ ln -s ../conf-available/zabbix-frontend-php.conf ---- //__Мониторинг Raspberry PI__// [[https://share.zabbix.com/cat-server-hardware/other/raspberry-pi-template]] {{it:zabbix:zabbix_share_-_raspberry_pi_template.mhtml|mht}} - Raspberry Pi Template ---- //__Мониторинг температуры hdd/ssd__// [[https://sevo44.ru/monitoring-temperatury-v-zabbix/]] {{it:zabbix:monitoring_temperatury_v_zabbix.mht|mht}} **На клиенте** > sudo apt install hddtemp > chmod +s /usr/sbin/hddtemp UserParameter=pve-t.sda,hddtemp /dev/sda | cut -c34-35 UserParameter=pve-t.sdb,hddtemp /dev/sdb | cut -c34-35 UserParameter=pve-t.sdc,hddtemp /dev/sdc | cut -c34-35 UserParameter=pve-t.sdd,hddtemp /dev/sdd | cut -c33-34 UserParameter=pve-t.sde,hddtemp /dev/sde | cut -c33-34 UserParameter=pve-t.sdf,hddtemp /dev/sdf | cut -c33-34 **Проверить на сервере** >zabbix_get -s -k pve-t.sda ---- __**Сброс админского пароля**__ $ mysql -u root -p MariaDB> use zabbix; MariaDB [zabbix]> update zabbix.users set passwd=md5('zabbix') where alias='Admin'; MariaDB [zabbix]> quit;