Hi All,
Strange issue I am having a problem with my Zabbix API, the following code I believe should return all hostgroups:
ZabbixAPI.hostgroup.get()
This is part of the pyzabbix API from here: https://github.com/lukecyca/pyzabbix
I am finding that it is not returning any hostgroups I am adding above groupid 161.
ZabbixAPI.login(apiadmin,**********)
Call user.login method
urllib2.Request(https://zabbix.wifinity.com/api_jsonrpc.php, {"params": {"password": "**********", "user": "apiadmin"}, "jsonrpc": "2.0", "method": "user.login", "id": "1"})
Response Body: {
"jsonrpc": "2.0",
"result": "xxxxxxxxxxxxxxxxxxxxxx",
"id": "1"
}
JSON-PRC Server: https://zabbix.wifinity.com/api_jsonrpc.php
Call hostgroup.get method
urllib2.Request(https://zabbix.wifinity.com/api_jsonrpc.php, {"params": {}, "jsonrpc": "2.0", "method": "hostgroup.get", "auth": "xxxxxxxxxxxxxxxxxxxxxx", "id": "1"})
Response Body: {
"jsonrpc": "2.0",
"result": [
{
"internal": "0",
"flags": "0",
"groupid": "4",
"name": "Zabbix servers"
},
etc.. but never reaches any groupids beyond 160.
Is this a known error?
Strange issue I am having a problem with my Zabbix API, the following code I believe should return all hostgroups:
ZabbixAPI.hostgroup.get()
This is part of the pyzabbix API from here: https://github.com/lukecyca/pyzabbix
I am finding that it is not returning any hostgroups I am adding above groupid 161.
ZabbixAPI.login(apiadmin,**********)
Call user.login method
urllib2.Request(https://zabbix.wifinity.com/api_jsonrpc.php, {"params": {"password": "**********", "user": "apiadmin"}, "jsonrpc": "2.0", "method": "user.login", "id": "1"})
Response Body: {
"jsonrpc": "2.0",
"result": "xxxxxxxxxxxxxxxxxxxxxx",
"id": "1"
}
JSON-PRC Server: https://zabbix.wifinity.com/api_jsonrpc.php
Call hostgroup.get method
urllib2.Request(https://zabbix.wifinity.com/api_jsonrpc.php, {"params": {}, "jsonrpc": "2.0", "method": "hostgroup.get", "auth": "xxxxxxxxxxxxxxxxxxxxxx", "id": "1"})
Response Body: {
"jsonrpc": "2.0",
"result": [
{
"internal": "0",
"flags": "0",
"groupid": "4",
"name": "Zabbix servers"
},
etc.. but never reaches any groupids beyond 160.
Is this a known error?
Comment