{"action":"closed","issue":{"url":"https://api.github.com/repos/alexanderzobnin/grafana-zabbix/issues/25","labels_url":"https://api.github.com/repos/alexanderzobnin/grafana-zabbix/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/alexanderzobnin/grafana-zabbix/issues/25/comments","events_url":"https://api.github.com/repos/alexanderzobnin/grafana-zabbix/issues/25/events","html_url":"https://github.com/alexanderzobnin/grafana-zabbix/issues/25","id":89290342,"number":25,"title":"Authorization with zabbix is not initiated","user":{"login":"aingvarf","id":11919288,"avatar_url":"https://avatars.githubusercontent.com/u/11919288?v=3","gravatar_id":"","url":"https://api.github.com/users/aingvarf","html_url":"https://github.com/aingvarf","followers_url":"https://api.github.com/users/aingvarf/followers","following_url":"https://api.github.com/users/aingvarf/following{/other_user}","gists_url":"https://api.github.com/users/aingvarf/gists{/gist_id}","starred_url":"https://api.github.com/users/aingvarf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aingvarf/subscriptions","organizations_url":"https://api.github.com/users/aingvarf/orgs","repos_url":"https://api.github.com/users/aingvarf/repos","events_url":"https://api.github.com/users/aingvarf/events{/privacy}","received_events_url":"https://api.github.com/users/aingvarf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-18T13:14:15Z","updated_at":"2015-06-18T13:38:51Z","closed_at":"2015-06-18T13:38:51Z","body":"At least for Zabbix 2.2 authorization is not initiated getting on all requests auth error.\r\nZabbix 2.2 in json return \"Not authorized\" error, not the \"Not authorised.\" as it is checked \r\nin zabbix/datasource.js\r\n```\r\n// Handle auth errors\r\n          if (response.data.error.data == \"Session terminated, re-login, please.\" ||\r\n              response.data.error.data == 'Not authorised.') {\r\n            return self.performZabbixAPILogin().then(function (response) {\r\n              self.auth = response;\r\n              return self.performZabbixAPIRequest(method, params);\r\n            });\r\n```\r\n"}}