This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
сервис_zabbix [2023/01/20 14:09] val [Мониторинг с использованием Zabbix agents] |
сервис_zabbix [2024/09/02 09:32] (current) val [Обновление Zabbix] |
||
---|---|---|---|
Line 7: | Line 7: | ||
===== Установка и запуск сервера ===== | ===== Установка и запуск сервера ===== | ||
+ | * [[https://www.zabbix.com/release_notes|Release Notes for Zabbix]] | ||
==== Установка SQL сервера ==== | ==== Установка SQL сервера ==== | ||
Line 26: | Line 27: | ||
# less /usr/share/doc/zabbix-server-mysql/README.Debian | # less /usr/share/doc/zabbix-server-mysql/README.Debian | ||
- | </code> | ||
- | * В Debian10 потребуется [[Сервис MySQL#Управление параметрами сервера]] MySQL innodb_strict_mode=OFF | ||
- | |||
- | <code> | ||
# cat zabbix.sql | # cat zabbix.sql | ||
</code><code> | </code><code> | ||
Line 205: | Line 202: | ||
===== Обновление Zabbix ===== | ===== Обновление Zabbix ===== | ||
- | * [[https://www.zabbix.com/documentation/current/manual/installation/upgrade/packages/debian_ubuntu#Steps required for a successful upgrade Zabbix]] | + | * [[https://www.zabbix.com/documentation/current/en/manual/installation/upgrade|Zabbix Documentation Upgrade procedure]] см. log_bin_trust_function_creators |
- | * [[https://www.zabbix.com/documentation/current/ru/manual/installation/upgrade/packages/debian_ubuntu#Обновление с Zabbix]] | + | * [[https://www.zabbix.com/documentation/current/en/manual/installation/upgrade/packages/debian_ubuntu|upgrade packages Debian/Ubuntu]] и !!![[https://www.zabbix.com/documentation/current/en/manual/installation/upgrade_notes_700|Upgrade notes for 7.0.0]] |
+ | * [[https://bestmonitoringtools.com/upgrade-zabbix-to-the-latest-version/|Upgrade Zabbix (5.0, 5.2, 5.4) to 6.0 like a Pro (+6.0 to 6.4 guide)]] | ||
+ | |||
===== Настройка мониторинга ===== | ===== Настройка мониторинга ===== | ||
- | * !!! однажды Setup заработал только в chrome !!! | + | * !!! Однажды Setup не заработал в firefox !!! |
* [[https://www.zabbix.com/documentation/current/ru/manual/quickstart|Zabbix Documentation. Быстрый старт]] | * [[https://www.zabbix.com/documentation/current/ru/manual/quickstart|Zabbix Documentation. Быстрый старт]] | ||
* Login: Admin; Pass: zabbix | * Login: Admin; Pass: zabbix | ||
Line 692: | Line 692: | ||
* [[https://www.zabbix.com/documentation/4.0/ru/manual/web_monitoring/example|Сценарий из реальной жизни]] | * [[https://www.zabbix.com/documentation/4.0/ru/manual/web_monitoring/example|Сценарий из реальной жизни]] | ||
+ | * [[https://stackoverflow.com/questions/58641673/zabbix-web-scenario-debug|Zabbix web scenario debug]] | ||
=== Исследование приложения === | === Исследование приложения === | ||
Line 757: | Line 758: | ||
{token1} regex:name="_token" value="(.{32})" | {token1} regex:name="_token" value="(.{32})" | ||
- | Required string: Roundcube Webmail | + | Required string: rcmloginsubmit |
Required status codes: 200 | Required status codes: 200 | ||
| | ||
Line 787: | Line 788: | ||
_token: {token2} | _token: {token2} | ||
| | ||
- | Required string: Roundcube Webmail | + | Required string: rcmloginsubmit |
Required status codes: 200 | Required status codes: 200 | ||
</code> | </code> | ||
==== Настройка триггеров ==== | ==== Настройка триггеров ==== | ||
+ | |||
+ | * [[https://www.zabbix.com/documentation/current/en/manual/config/triggers/trigger|Configuring a trigger]] | ||
=== Примеры простых целочисленных триггеров === | === Примеры простых целочисленных триггеров === | ||
Line 808: | Line 811: | ||
Host: ya.ru | Host: ya.ru | ||
Name: HTTPS service on {HOST.NAME} is not available | Name: HTTPS service on {HOST.NAME} is not available | ||
- | Expression: {ya.ru:net.tcp.service.perf[https].last(#2)}=0 | + | Expression: {ya.ru:net.tcp.service.perf[https].max(#2)}=0 |
- | Expression: last(/ya.ru/net.tcp.service.perf[https],#2)=0 | + | Expression: max(/ya.ru/net.tcp.service.perf[https],#2)=0 |
Dependencies: Zabbix server: gate.isp.un is unreachable | Dependencies: Zabbix server: gate.isp.un is unreachable | ||
Line 832: | Line 835: | ||
=== Пример с макросами и Recovery expression === | === Пример с макросами и Recovery expression === | ||
+ | |||
+ | !!! Добавить в поле "Operational data" информацию о текущем и максимальном количестве адресов | ||
+ | |||
<code> | <code> | ||
Name: On {HOST.NAME} dhcp subnet is full | Name: On {HOST.NAME} dhcp subnet is full | ||
Line 983: | Line 989: | ||
ServerActive=server | ServerActive=server | ||
#Hostname=CLIENTN | #Hostname=CLIENTN | ||
+ | </code> | ||
+ | <code> | ||
+ | /var/log/cisco_routers.log: | ||
+ | Jun 10 15:06:23 192.168.32.224 4278: Jun 10 15:06:22: %IP-4-DUPADDR: Duplicate address 192.168.0.254 on Port-channel6.664, sourced by 30de.4bf5.e9cc | ||
+ | Jun 10 16:25:07 192.168.32.224 4308: Jun 10 16:25:06: %SYS-5-CONFIG_I: Configured from console by val on vty0 (192.168.32.6) | ||
+ | last(/helper.bmstu.ru/log[/var/log/cisco_routers.log,Duplicate address])<>0 | ||
</code> | </code> | ||
Line 1046: | Line 1058: | ||
=== Автоматическое добавление === | === Автоматическое добавление === | ||
- | * [[https://www.zabbix.com/documentation/3.0/manual/discovery/network_discovery/rule|Configuring a network discovery rule]] | + | |
+ | * [[https://www.zabbix.com/documentation/current/en/manual/discovery/network_discovery|Network discovery]] см. Discovery status | ||
<code> | <code> | ||
Configuration->Discovery | Configuration->Discovery | ||
Discovery rules | Discovery rules | ||
- | Name: Local network | + | Name: Local network или Cisco Router Discovery |
IP range: 172.16.1.190-199, 192.168.X.51-60 | IP range: 172.16.1.190-199, 192.168.X.51-60 | ||
Checks: | Checks: | ||
Line 1062: | Line 1076: | ||
Update interval: 3m | Update interval: 3m | ||
- | Host name: SNMPv2 agent ... | + | Host name: SNMPv2 agent ... !!! Остальные варианты требуют PTR записи |
Enabled: yes | Enabled: yes | ||
Line 1235: | Line 1249: | ||
* Пример разработки собственного скрипта для LLD | * Пример разработки собственного скрипта для LLD | ||
* [[Обработка XML файлов]] | * [[Обработка XML файлов]] | ||
+ | * [[https://stackoverflow.com/questions/12524437/output-json-from-bash-script|Output JSON from Bash script]] | ||
<code> | <code> |