このページの翻訳:
- 日本語 (ja)
- English (en)
最近の更新
Tag Cloud
このページへのアクセス
今日: 11 / 昨日: 1
総計: 588
- Dokuwiki.fl8.jp(2312)
- 13 CentOS6メール設定(57)
- FreeBSD カーネル再構築(52)
- 75 Proftpd(51)
最近の更新
このページへのアクセス
今日: 11 / 昨日: 1
総計: 588
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
}'