change filter to search host
This commit is contained in:
parent
f01bea9824
commit
0a44237cfa
@ -122,7 +122,10 @@ class ZabbixAPI:
|
|||||||
"jsonrpc": "2.0",
|
"jsonrpc": "2.0",
|
||||||
"method": "host.get",
|
"method": "host.get",
|
||||||
"params": {
|
"params": {
|
||||||
"filter": {
|
"output": [
|
||||||
|
"host"
|
||||||
|
],
|
||||||
|
"search": {
|
||||||
"host": hostname
|
"host": hostname
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user