-
Type:
Incident report
-
Resolution: Incomplete
-
Priority:
Major
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Hi there,
I am using a powershell script to operate with zabbix API. Sometimes I need to disable a numerous hosts in zabbix. To do that I am sending following request:
POST /api_jsonrpc.php HTTP/1.1
Host: 192.168.0.111
Content-Type: application/json
{
"jsonrpc":"2.0",
"method":"host.get",
"params":{
"output":"extend",
"filter":{
"ip":"my_ip"
}
},
"auth":"my_auth",
"id":2
}
That works fine for most hosts but sometimes fails to return actual hostid, just an empty array instead. Example of affected ip is 192.168.6.216. I checked that several times using powershell, http-requests and some other tools but your endpoint doesn't provide me with any info regarding this IP.
Please assist and fix, if necessary