Unable to login on Zabbix server
gauravv5 opened this issue · 0 comments
Traceback (most recent call last):
File "test.py", line 4, in
zapi = ZabbixAPI(url='https://nms.planetc.net/zabbix/', user='trends', password='India@12345')
File "/usr/local/lib/python3.6/site-packages/pyzabbix/api.py", line 180, in init
self._login(user, password)
File "/usr/local/lib/python3.6/site-packages/pyzabbix/api.py", line 210, in _login
self.auth = self.user.login(user=user, password=password)
File "/usr/local/lib/python3.6/site-packages/pyzabbix/api.py", line 94, in fn
args or kwargs
File "/usr/local/lib/python3.6/site-packages/pyzabbix/api.py", line 304, in do_request
raise ZabbixAPIException(err)
pyzabbix.api.ZabbixAPIException: {'code': -32602, 'message': 'Invalid params.', 'data': 'Invalid parameter "/": unexpected parameter "user".', 'json': "{'jsonrpc': '2.0', 'method': 'user.login', 'params': {'user': 'trends', 'password': '********'}, 'id': '1'}"}
This is the error i am getting when try to login.
i am using python3.6 and zabbix server is at 6.4.