Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to login on Zabbix server #159

Open
gauravv5 opened this issue Oct 21, 2024 · 0 comments
Open

Unable to login on Zabbix server #159

gauravv5 opened this issue Oct 21, 2024 · 0 comments

Comments

@gauravv5
Copy link

gauravv5 commented Oct 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant