{"action":"opened","issue":{"url":"https://api.github.com/repos/sensu/uchiwa/issues/659","repository_url":"https://api.github.com/repos/sensu/uchiwa","labels_url":"https://api.github.com/repos/sensu/uchiwa/issues/659/labels{/name}","comments_url":"https://api.github.com/repos/sensu/uchiwa/issues/659/comments","events_url":"https://api.github.com/repos/sensu/uchiwa/issues/659/events","html_url":"https://github.com/sensu/uchiwa/issues/659","id":216515893,"number":659,"title":"Using Sensu with Uchiwa config error","user":{"login":"arianf","id":7397857,"avatar_url":"https://avatars2.githubusercontent.com/u/7397857?v=3","gravatar_id":"","url":"https://api.github.com/users/arianf","html_url":"https://github.com/arianf","followers_url":"https://api.github.com/users/arianf/followers","following_url":"https://api.github.com/users/arianf/following{/other_user}","gists_url":"https://api.github.com/users/arianf/gists{/gist_id}","starred_url":"https://api.github.com/users/arianf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arianf/subscriptions","organizations_url":"https://api.github.com/users/arianf/orgs","repos_url":"https://api.github.com/users/arianf/repos","events_url":"https://api.github.com/users/arianf/events{/privacy}","received_events_url":"https://api.github.com/users/arianf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-23T17:46:25Z","updated_at":"2017-03-23T17:46:25Z","closed_at":null,"body":"When using these version of Sensu and Uchiwa, I have a weird configuration syntax issue.\r\n\r\n - sensu-0.28.4-1.el6.x86_64.rpm\r\n - uchiwa-0.22.2-1.x86_64.rpm\r\n\r\nThe problem occurs inside of `/etc/sensu/uchiwa.json`\r\n\r\n```json\r\n{\r\n  \"sensu\": [\r\n    {\r\n      \"name\": \"Sensu\",\r\n      \"host\": \"127.0.0.1\",\r\n      \"ssl\": false,\r\n      \"port\": 4567,\r\n      \"user\": \"admin\",\r\n      \"pass\": \"*********\"\r\n    }\r\n  ],\r\n  \"uchiwa\": {\r\n    \"user\": \"\",\r\n    \"pass\": \"\",\r\n    \"port\": 3000,\r\n    \"refresh\": 10000\r\n  }\r\n}\r\n```\r\n\r\nSensu will give me this error: \r\n\r\n```json\r\nconfiguration is invalid\r\n{\r\n  \"errors\":[\r\n    {\r\n      \"object\":[\r\n        {\r\n          \"name\":\"Sensu\",\r\n          \"host\":\"127.0.0.1\",\r\n          \"ssl\":false,\r\n          \"port\":4567,\r\n          \"user\":\"admin\",\r\n          \"pass\":\"*********\"\r\n        }\r\n      ],\r\n      \"message\":\"sensu must be a hash\"\r\n    }\r\n  ]\r\n}\r\n```\r\n\r\n\r\nThen, if I change Sensu to be a hash...\r\n\r\n```json\r\n{\r\n  \"sensu\": {\r\n    \"name\": \"Sensu\",\r\n    \"host\": \"127.0.0.1\",\r\n    \"ssl\": false,\r\n    \"port\": 4567,\r\n    \"user\": \"admin\",\r\n    \"pass\": \"*********\"\r\n  },\r\n  \"uchiwa\": {\r\n    \"user\": \"\",\r\n    \"pass\": \"\",\r\n    \"port\": 3000,\r\n    \"refresh\": 10000\r\n  }\r\n}\r\n```\r\n\r\nI get the following error from Uchiwa.\r\n\r\n```json\r\n{\r\n  \"timestamp\":\"2017-03-22T17:56:59.287845584-07:00\",\r\n  \"level\":\"fatal\",\r\n  \"message\":\"Error decoding file /etc/sensu/uchiwa.json: json: cannot unmarshal object into Go struct field Config.Sensu of type []config.SensuConfig\"\r\n}\r\n```\r\n\r\nWho is right? Can I downgrade my Sensu version to one that works with Uchiwa?\r\n\r\n## Your Environment\r\n* Uchiwa version used: uchiwa-0.22.2-1.x86_64.rpm\r\n* Sensu version used: sensu-0.28.4-1.el6.x86_64.rpm\r\n* Operating System and version (e.g. Ubuntu 14.04): Oracle Linux Server release 6.4\r\n"}}
{"actor":{"display_login":"arianf"}}