This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
сервис_zabbix [2025/05/21 14:07] val [Мониторинг по протоколу SNMP] |
сервис_zabbix [2025/05/23 08:58] (current) val [Элементы типа trapper] |
||
---|---|---|---|
Line 151: | Line 151: | ||
# cat /etc/zabbix/zabbix_proxy.conf | # cat /etc/zabbix/zabbix_proxy.conf | ||
</code><code> | </code><code> | ||
- | ... | + | #... |
Hostname=gate | Hostname=gate | ||
- | ConfigFrequency=60 | + | |
+ | #v6 | ||
+ | #ConfigFrequency=60 | ||
+ | #v7 | ||
+ | #ProxyConfigFrequency=60 | ||
+ | | ||
Server=server | Server=server | ||
DBName=/var/lib/zabbix/zabbix.db | DBName=/var/lib/zabbix/zabbix.db | ||
Line 634: | Line 639: | ||
#MY_RES=`speedtest -f csv` | #MY_RES=`speedtest -f csv` | ||
#MY_DOWNLOAD=`echo $MY_RES | cut -d',' -f6` | #MY_DOWNLOAD=`echo $MY_RES | cut -d',' -f6` | ||
- | #Y_UPLOAD=`echo $MY_RES | cut -d',' -f7` | + | #MY_UPLOAD=`echo $MY_RES | cut -d',' -f7` |
zabbix_sender -z 127.0.0.1 -p 10051 -s server.corpX.un -k speedtest.download -o $MY_DOWNLOAD | zabbix_sender -z 127.0.0.1 -p 10051 -s server.corpX.un -k speedtest.download -o $MY_DOWNLOAD | ||
Line 1089: | Line 1094: | ||
Enabled: yes | Enabled: yes | ||
- | Configuration->Actions | + | Alert/Configuration->Actions |
Event source: Discovery | Event source: Discovery | ||
- | Name: Action add snmp device to zabbix | + | Name: Action add Cisco device to zabbix |
Conditions: | Conditions: | ||
Received value: like или contains router | Received value: like или contains router | ||
Line 1373: | Line 1378: | ||
* [[https://www.zabbix.com/forum/zabbix-troubleshooting-and-problems/36900-api-key-lifetime|api key lifetime]] | * [[https://www.zabbix.com/forum/zabbix-troubleshooting-and-problems/36900-api-key-lifetime|api key lifetime]] | ||
+ | * Для и до 6-й версии "user": "Admin", | ||
<code> | <code> | ||
server:~# apt install curl | server:~# apt install curl | ||
Line 1382: | Line 1387: | ||
"method": "user.login", | "method": "user.login", | ||
"params": { | "params": { | ||
- | "user": "Admin", | + | "username": "Admin", |
"password": "zabbix" | "password": "zabbix" | ||
}, | }, | ||
Line 1516: | Line 1521: | ||
} " http://127.0.0.1/zabbix/api_jsonrpc.php | } " http://127.0.0.1/zabbix/api_jsonrpc.php | ||
</code><code> | </code><code> | ||
- | server.corp1.un:~# /root/zab_set_map_name.sh 2 "ISP1" | + | server.corp1.un:~# /root/zab_set_map_name.sh 2 "ISP 1" |
</code> | </code> |