This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
сервис_zabbix [2022/06/03 15:42] val [Мониторинг по протоколу SNMP] |
сервис_zabbix [2022/07/25 06:51] val [Элементы типа trapper] |
||
---|---|---|---|
Line 132: | Line 132: | ||
# mkdir /var/lib/zabbix | # mkdir /var/lib/zabbix | ||
+ | # В 6-й версии не нужно, БД будет создана автоматически | ||
# zcat /usr/share/doc/zabbix-proxy-sqlite3/schema.sql.gz | sqlite3 /var/lib/zabbix/zabbix.db | # zcat /usr/share/doc/zabbix-proxy-sqlite3/schema.sql.gz | sqlite3 /var/lib/zabbix/zabbix.db | ||
</code> | </code> | ||
Line 398: | Line 399: | ||
{{HOSTNAME}:{TRIGGER.KEY}.last(#2)} | {{HOSTNAME}:{TRIGGER.KEY}.last(#2)} | ||
</code> | </code> | ||
+ | |||
+ | * [[https://www.zabbix.com/forum/zabbix-help/445808-display-an-items-previous-value|Display an items previous value...does not work...]] | ||
==== Простые проверки ==== | ==== Простые проверки ==== | ||
Line 597: | Line 600: | ||
Key: speedtest.download | Key: speedtest.download | ||
Type of information: Numeric (float) или Numeric (unsigned) | Type of information: Numeric (float) или Numeric (unsigned) | ||
- | Units: Бит/сек | + | Units: бит/с или bit/s |
Allowed hosts: 127.0.0.1 | Allowed hosts: 127.0.0.1 | ||
Preprocessing может понадобиться | Preprocessing может понадобиться | ||
Line 828: | Line 831: | ||
=== Пример с текстовым элементом === | === Пример с текстовым элементом === | ||
+ | Zabbix 5 | ||
<code> | <code> | ||
Name: Host {HOST.NAME} nmap change | Name: Host {HOST.NAME} nmap change | ||
Line 835: | Line 839: | ||
или | или | ||
Expression: {val.bmstu.ru:my.nmap.diff()}=1 | Expression: {val.bmstu.ru:my.nmap.diff()}=1 | ||
+ | </code> | ||
+ | Zabbix 6 | ||
+ | <code> | ||
+ | Name: installed soft on host {HOST.NAME} change | ||
+ | Severity: Warning | ||
+ | |||
+ | Expression: (last(/Template OS Windows list installed soft Active/listinstalledsoft,#1)<>last(/Template OS Windows list installed soft Active/listinstalledsoft,#2))=1 | ||
</code> | </code> | ||
Line 977: | Line 988: | ||
* Windows examples | * Windows examples | ||
- | * [[PowerShell#Список установленного ПО]] !!! Попробовать вариант с форматированием | + | * [[PowerShell#Список установленного ПО]] |
<code> | <code> | ||
Line 985: | Line 996: | ||
Timeout=30 | Timeout=30 | ||
- | UserParameter=listinstalledsoft,powershell -Command Get-ChildItem HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall; powershell -Command Get-ChildItem HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | + | #UserParameter=listinstalledsoft,powershell -Command Get-ChildItem HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall; powershell -Command Get-ChildItem HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall |
- | #UserParameter=listinstalledsoft,C:\bin\listinstalledsoft.bat | + | UserParameter=listinstalledsoft,C:\bin\listinstalledsoft.bat | findstr /v "^$" |
UnsafeUserParameters=1 | UnsafeUserParameters=1 |