希望按列表主机名返回值itemsid
找到hostid列表的变种
zabbix_get=\
{
"jsonrpc": "2.0",
"method": "item.get",
"params": {
"output": "extend",
"hostids": [123, 234],
"search": {
"key_": "vfs.fs.size"
},
"sortfield": "name"
},
"auth": authToken.get("result"),
"id": authToken.get("id")
}
尝试通过一个主机名请求 - GOOD
zabbix_get=\
{
"jsonrpc": "2.0",
"method": "item.get",
"params": {
"output": "extend",
"host": "server01"
"search": {
"key_": "vfs.fs.size"
},
"sortfield": "name"
},
"auth": authToken.get("result"),
"id": authToken.get("id")
}
尝试按列表主机名
进行请求zabbix_get=\
{
"jsonrpc": "2.0",
"method": "item.get",
"params": {
"output": "extend",
"hosts": ["server01","server02"]
"search": {
"key_": "vfs.fs.size"
},
"sortfield": "name"
},
"auth": authToken.get("result"),
"id": authToken.get("id")
}
zabbix被冻结了。
如何解决这个问题?