-
Incident report
-
Resolution: Duplicate
-
Major
-
None
-
2.0.0, 2.0.1rc1
-
None
-
zabbix 2.0, 2.0.1rc2
google translate
---------------------------------------
http://www.zabbix.com/documentation/2.0/manual/appendix/api/host/get
Get () method returns no IP address for the site, or interfaces
from zabbix_api import ZabbixAPI
code
[code]
server = ""
username = "api"
password = ""
zapi = ZabbixAPI (server = server, path = "", log_level = 6)
zapi.login (username, password)
zapi.host.get (
{"Output": "extend",
"filter":
}
)
[/ code]
returns only the following
[code]
20: Response Code: 200
10: Response Body: {u'jsonrpc ': u'2 .0', u'result ': [
], u'id': 1}
[/ code]
original
---------------------------------------
http://www.zabbix.com/documentation/2.0/manual/appendix/api/host/get
????? get() ?? ?????????? ?? IP ?????? ????, ?? interfaces
from zabbix_api import ZabbixAPI
???
[code]
server=""
username="api"
password=""
zapi = ZabbixAPI(server=server, path="", log_level=6)
zapi.login(username, password)
zapi.host.get(
{ "output": "extend",
"filter":
}
)
[/code]
?????????? ?????? ?????????
[code]
20: Response Code: 200
10: Response Body: {u'jsonrpc': u'2.0', u'result': [
], u'id': 1}
[/code]
- duplicates
-
ZBX-5210 API: host.get() does not return interfaceid
- Closed