change filter to search host

This commit is contained in:
3err0 2019-06-25 14:27:34 +08:00
parent f01bea9824
commit 0a44237cfa

View File

@ -122,7 +122,10 @@ class ZabbixAPI:
"jsonrpc": "2.0",
"method": "host.get",
"params": {
"filter": {
"output": [
"host"
],
"search": {
"host": hostname
}
},