このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
- 02 Apache2で自己認証ssl [中間証明書の整合性確認]
最近の更新
user: hogehoge
password: hogehgoepass
# curl -XPOST http://hogehoge.net/zabbix/api_jsonrpc.php \ -H "Content-Type: application/json-rpc" \ -d '{ "jsonrpc": "2.0", "method": "user.login", "params": {"user": "hogehoge","password": "hogehogepass"}, "id": 1 }' {"jsonrpc":"2.0","result":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","id":1}
curl -XPOST http://hogehoge.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
}'