Hey!
I'm trying to connect to Zabbix using phyton :
Getting this in console :
I'm 100% sure that username and password are correct,but can't figure why i keep getting this error.It looks like it always puts 'zabbix' and 'admin' as parameters.
Thanks.
I'm trying to connect to Zabbix using phyton :
Code:
from pyzabbix import ZabbixAPI
zapi = ZabbixAPI("http://****.****.***/api_jsonrpc.php")
zapi.login("******", "*****")
print("Connected to Zabbix API Version %s" % zapi.api_version())
for h in zapi.host.get(output="extend"):
print(h['hostid'])
Code:
pyzabbix.api.ZabbixAPIException: ("Error -32602: Invalid params., Login name or password is incorrect. while sending {'jsonrpc': '2.0', 'id': '1', 'params': {'password': 'zabbix', 'user': 'admin'}, 'method': 'user.login'}", -32602)
Thanks.
Comment