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 15:30] val [sqlite3] |
сервис_zabbix [2025/05/23 08:58] (current) val [Элементы типа trapper] |
||
---|---|---|---|
Line 639: | 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 1378: | 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 1387: | Line 1387: | ||
"method": "user.login", | "method": "user.login", | ||
"params": { | "params": { | ||
- | "user": "Admin", | + | "username": "Admin", |
"password": "zabbix" | "password": "zabbix" | ||
}, | }, | ||
Line 1521: | 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> |