hello guys !
I use Zabbix 3.0.0
I try to use the Zabbix API to import several templates.
According to the "ret" value the confimport works successfully (it returns True), however nothing appears in the web GUI. I give you the template in attached files, could you tell me where the problem is ?
Thank you for your answer.
I use Zabbix 3.0.0
I try to use the Zabbix API to import several templates.
Code:
from pyzabbix import ZabbixAPI
zapi = ZabbixAPI("http://127.0.0.1/zabbix")
zapi.login("Admin", "mypassword")
with open('/appli/exploit/zbx_export_templates.xml', 'r') as myfile:
data=myfile.read().replace('\n', '').replace(' ', '')
ret = zapi.confimport(format='xml', source=data)
print ret
According to the "ret" value the confimport works successfully (it returns True), however nothing appears in the web GUI. I give you the template in attached files, could you tell me where the problem is ?
Thank you for your answer.
Comment