{"action":"created","issue":{"url":"https://api.github.com/repos/HenriWahl/Nagstamon/issues/358","repository_url":"https://api.github.com/repos/HenriWahl/Nagstamon","labels_url":"https://api.github.com/repos/HenriWahl/Nagstamon/issues/358/labels{/name}","comments_url":"https://api.github.com/repos/HenriWahl/Nagstamon/issues/358/comments","events_url":"https://api.github.com/repos/HenriWahl/Nagstamon/issues/358/events","html_url":"https://github.com/HenriWahl/Nagstamon/pull/358","id":203427029,"number":358,"title":"Fix case sensitive 'apiinfo.version' method name for Zabbix","user":{"login":"jeromelebleu","id":3597194,"avatar_url":"https://avatars.githubusercontent.com/u/3597194?v=3","gravatar_id":"","url":"https://api.github.com/users/jeromelebleu","html_url":"https://github.com/jeromelebleu","followers_url":"https://api.github.com/users/jeromelebleu/followers","following_url":"https://api.github.com/users/jeromelebleu/following{/other_user}","gists_url":"https://api.github.com/users/jeromelebleu/gists{/gist_id}","starred_url":"https://api.github.com/users/jeromelebleu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeromelebleu/subscriptions","organizations_url":"https://api.github.com/users/jeromelebleu/orgs","repos_url":"https://api.github.com/users/jeromelebleu/repos","events_url":"https://api.github.com/users/jeromelebleu/events{/privacy}","received_events_url":"https://api.github.com/users/jeromelebleu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-01-26T16:59:59Z","updated_at":"2017-01-27T18:08:33Z","closed_at":"2017-01-27T12:20:55Z","pull_request":{"url":"https://api.github.com/repos/HenriWahl/Nagstamon/pulls/358","html_url":"https://github.com/HenriWahl/Nagstamon/pull/358","diff_url":"https://github.com/HenriWahl/Nagstamon/pull/358.diff","patch_url":"https://github.com/HenriWahl/Nagstamon/pull/358.patch"},"body":"After upgrading Nagstamon from 1.0.1 to 2.0.1, I could not reach our Zabbix server anymore. I had the following error:\r\n\r\n```\r\n(<class 'Nagstamon.thirdparty.zabbix_api.ZabbixAPIException'>, ZabbixAPIException('Error -32602: Invalid params., Not authorized while sending {\"id\": 10, \"params\": {}, \"method\": \"APIInfo.version\", \"jsonrpc\": \"2.0\"}', -32602), <traceback object at 0x7f44b803f988>)\r\n```\r\n\r\nWe didn't change anything, so I tried to call this API method from the command-line regarding the [Zabbix manual](https://www.zabbix.com/documentation/2.2/manual/api/reference/apiinfo/version):\r\n\r\n```\r\n$ curl -H \"Content-Type: application/json\" -X POST https://zabbix/api_jsonrpc.php -d '{\"jsonrpc\":\"2.0\",\"method\":\"apiinfo.version\",\"params\":{},\"id\":10}'\r\n{\"jsonrpc\":\"2.0\",\"result\":\"2.2.7\",\"id\":1}\r\n```\r\n\r\nI then realized that `zabbix_api.py` was not using the strict method name, which seems to be case-sensitive - at least with Zabbix 2.2. It's working fine with this fix. I don't think it will break any other configurations!"},"comment":{"url":"https://api.github.com/repos/HenriWahl/Nagstamon/issues/comments/275732690","html_url":"https://github.com/HenriWahl/Nagstamon/pull/358#issuecomment-275732690","issue_url":"https://api.github.com/repos/HenriWahl/Nagstamon/issues/358","id":275732690,"user":{"login":"mprenditore","id":5493208,"avatar_url":"https://avatars.githubusercontent.com/u/5493208?v=3","gravatar_id":"","url":"https://api.github.com/users/mprenditore","html_url":"https://github.com/mprenditore","followers_url":"https://api.github.com/users/mprenditore/followers","following_url":"https://api.github.com/users/mprenditore/following{/other_user}","gists_url":"https://api.github.com/users/mprenditore/gists{/gist_id}","starred_url":"https://api.github.com/users/mprenditore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mprenditore/subscriptions","organizations_url":"https://api.github.com/users/mprenditore/orgs","repos_url":"https://api.github.com/users/mprenditore/repos","events_url":"https://api.github.com/users/mprenditore/events{/privacy}","received_events_url":"https://api.github.com/users/mprenditore/received_events","type":"User","site_admin":false},"created_at":"2017-01-27T18:08:33Z","updated_at":"2017-01-27T18:08:33Z","body":"@jeromelebleu yes, it works... I checked the documentation and it's in lowercase since 1.8... dunno why the api used the camelcase...\r\nThanks for your support!"}}
{"actor":{"display_login":"mprenditore"}}