Open zalexua opened 1 year ago
Thank you Oleksii. Do you have an idea how to make it backward compatible? Can you create PR, please?
I'm not JS programmer, so I could not prepare a PR, sorry.
It probably makes sense to check firsts API version and then, based on the results, use corresponding data for Login request. https://www.zabbix.com/documentation/6.4/en/manual/api/reference/apiinfo/version
Any plans on fixing this? I just tried it and still doesn't work. user --> username
@JayTea144 @zalexua Could you test, pls? This should fix a problem - https://github.com/monitoringartist/zapix/commit/9fbc251478adf2cc91a1043e22c5b8fb96185714 but I'm not able to test it on my own.
https://www.zabbix.com/documentation/5.4/en/manual/api/changes_5.2_-_5.4
ZBXNEXT-6474 user.login: Renamed parameter user → username.
https://www.zabbix.com/documentation/6.4/en/manual/api/changes
ZBXNEXT-8085 user.login: Removed support for deprecated parameter user.
So, starting from 6.4, in jsonrpc.js:21 instead of:
this.call('user.login', {user: user, password: pass}, function(result) {
must be:this.call('user.login', {username: user, password: pass}, function(result) {