ユーザ用ツール

サイト用ツール


サイドバー

このページの翻訳:



最近の更新



Tag Cloud

01_linux:04_監視:zabbix:18_zabbix_api

文書の過去の版を表示しています。


18 Zabbix APII

32桁のトークンを取得する

# curl -XPOST http://watch73.sv-mgr.net/zabbix/api_jsonrpc.php \
-H "Content-Type: application/json-rpc" \
-d '{
"jsonrpc": "2.0", 
"method": "user.login", 
"params": {"user": "matsui","password": "shinya.matsui@gmocloud.com"},
"id": 1
}'
{"jsonrpc":"2.0","result":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","id":1}

最新のアラート3件

curl -XPOST http://watch73.sv-mgr.net/zabbix/api_jsonrpc.php \
-H "Content-Type: application/json-rpc" \
-d '{
    "jsonrpc": "2.0",
    "method": "alert.get",
    "params": {
        "output": "extend",
        "limit": "3",
        "sortfield": "alertid",
        "sortorder": "DESC"
    },
    "auth": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "id": 1
}'

01_linux/04_監視/zabbix/18_zabbix_api.1614344868.txt.gz · 最終更新: 2021/02/26 22:07 by matsui