hi,
how can i get the contet of an item via python api ?
my code looks like
the result is : {u'itemid': u'23513'}, but not the content of the item.
can anyone help me ?
thanks
how can i get the contet of an item via python api ?
my code looks like
Code:
#! /usr/bin/python
from pyzabbix import ZabbixAPI
ZABBIX_SERVER = 'server'
zapi = ZabbixAPI(ZABBIX_SERVER)
zapi.login('user', 'password')
list_item = zapi.item.get({"output": "extend","filter":{'host':'cl0001ms0001'},"search":{'key_':'uptime'}})
for item in list_item:
if item['itemid'] == '23513':
print item
can anyone help me ?
thanks
Comment