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

Authorization with zabbix is not initiated #25

Closed
aingvarf opened this issue Jun 18, 2015 · 3 comments
Closed

Authorization with zabbix is not initiated #25

aingvarf opened this issue Jun 18, 2015 · 3 comments

Comments

@aingvarf
Copy link

At least for Zabbix 2.2 authorization is not initiated getting on all requests auth error.
Zabbix 2.2 in json return "Not authorized" error, not the "Not authorised." as it is checked
in zabbix/datasource.js

// Handle auth errors
          if (response.data.error.data == "Session terminated, re-login, please." ||
              response.data.error.data == 'Not authorised.') {
            return self.performZabbixAPILogin().then(function (response) {
              self.auth = response;
              return self.performZabbixAPIRequest(method, params);
            });
@alexanderzobnin
Copy link
Collaborator

@aingvarf Thanks! I just now trying to solve this problem.

@alexanderzobnin
Copy link
Collaborator

@aingvarf Please, try to test this fix.

@aingvarf
Copy link
Author

Thanks! This problem is fixed.

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

No branches or pull requests

2 participants