curl -s -d '
{
"jsonrpc": "2.0",
"method": "item.get",
"params": {
"output": "extend",
"selectHosts": "extend",
"groupids": "146",
"sortfield": "name"
},
"auth": "'${auth}'",
"id": 1
}
' -H "Content-Type: application/json-rpc" ${ZabbixWeb}api_jsonrpc.php
echo ""
上記getコマンドの結果下記のように出力されますが、
"itemid": "XXXX", ※アイテムID
"type": "XX", ※監視タイプ
"hostid": "XXXXX", ※id
"name": "XXXXX", ※アイテム名
"key_": "XXXXXX", ※アイテムキー
"delay": "XXXXX", ※更新間隔
"status": "XXXX", ※アイテムステータス