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/03/09 10:11] val [API] |
сервис_zabbix [2022/07/23 17:36] val [Мониторинг с использованием Zabbix agents] |
||
---|---|---|---|
Line 89: | Line 89: | ||
http://server.corpX.un/zabbix/setup.php | http://server.corpX.un/zabbix/setup.php | ||
+ | !!! После работы визарда рекомендуется | ||
+ | |||
+ | # mv /usr/share/zabbix/setup.php /usr/share/zabbix/setup.php_stop | ||
+ | |||
+ | что бы никто его не повторил) | ||
</code><code> | </code><code> | ||
# less /etc/zabbix/zabbix.conf.php | # less /etc/zabbix/zabbix.conf.php | ||
Line 127: | 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 972: | Line 978: | ||
* Windows examples | * Windows examples | ||
- | * [[PowerShell#Список установленного ПО]] !!! Попробовать вариант с форматированием | + | * [[PowerShell#Список установленного ПО]] |
<code> | <code> | ||
Line 980: | Line 986: | ||
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 |
UnsafeUserParameters=1 | UnsafeUserParameters=1 | ||
Line 1038: | Line 1044: | ||
4.XX Template Module Interfaces Simple SNMPv2 | 4.XX Template Module Interfaces Simple SNMPv2 | ||
5.XX Template Net Cisco IOS SNMP !!!! Уменьшить период Discovery !!!! | 5.XX Template Net Cisco IOS SNMP !!!! Уменьшить период Discovery !!!! | ||
+ | 6.XX Cisco IOS SNMP | ||
Set host inventory mode: Automatic | Set host inventory mode: Automatic | ||
Add | Add | ||
</code> | </code> | ||
+ | |||
+ | === SNMPv3 === | ||
+ | |||
+ | * [[https://blog.zabbix.com/monitoring-network-hardware-with-snmpv3-in-zabbix/10093/|Monitoring network hardware with SNMPv3 in Zabbix]] | ||
==== Проверки через SSH ==== | ==== Проверки через SSH ==== | ||
Line 1050: | Line 1061: | ||
* [[https://www.zabbix.com/documentation/3.0/ru/manual/config/items/itemtypes/snmptrap|Zabbix Documentation SNMP трапы]] | * [[https://www.zabbix.com/documentation/3.0/ru/manual/config/items/itemtypes/snmptrap|Zabbix Documentation SNMP трапы]] | ||
* [[https://gist.github.com/jpawlowski/152abb4951f39ce1cfa0b1c5220b8635|SNMPTT installation on CentOS 7 for Zabbix integration]] | * [[https://gist.github.com/jpawlowski/152abb4951f39ce1cfa0b1c5220b8635|SNMPTT installation on CentOS 7 for Zabbix integration]] | ||
+ | * [[https://programmersought.com/article/39768892920/|How to deploy SNMP Traps in Centos8]] | ||
* [[https://www.zabbix.com/forum/zabbix-help/28463-catch-all-snmp-traps-with-general-event|catch all snmp traps with general event]] | * [[https://www.zabbix.com/forum/zabbix-help/28463-catch-all-snmp-traps-with-general-event|catch all snmp traps with general event]] | ||
+ | * [[https://blog.zabbix.com/snmp-traps-in-zabbix/8210/|SNMP Traps in Zabbix]] | ||
+ | * [[https://youtu.be/fVK2YWdTalQ|youtube SNMP Traps in Zabbix Tutorial]] | ||
<code> | <code> | ||
Line 1269: | Line 1283: | ||
Name: On {HOST.NAME} in the DHCP pool {#POOLNAME} | Name: On {HOST.NAME} in the DHCP pool {#POOLNAME} | ||
Expression: {Template App DHCP Pools:dhcp.pools.shared-network[{#POOLNAME},used].last()}/{Template App DHCP Pools:dhcp.pools.shared-network[{#POOLNAME},defined].last()}*100 > {$DHCP.POOLS.MAX.PERCENT} | Expression: {Template App DHCP Pools:dhcp.pools.shared-network[{#POOLNAME},used].last()}/{Template App DHCP Pools:dhcp.pools.shared-network[{#POOLNAME},defined].last()}*100 > {$DHCP.POOLS.MAX.PERCENT} | ||
+ | last(/Template App DHCP Pools/dhcp.pools.shared-network[{#POOLNAME},used])/last(/Template App DHCP Pools/dhcp.pools.shared-network[{#POOLNAME},defined])*100 > {$DHCP.POOLS.MAX.PERCENT} | ||
Severity: Warning | Severity: Warning | ||
</code> | </code> |