{"action":"closed","issue":{"url":"https://api.github.com/repos/andrefreitas/rocketchat-nagios/issues/6","repository_url":"https://api.github.com/repos/andrefreitas/rocketchat-nagios","labels_url":"https://api.github.com/repos/andrefreitas/rocketchat-nagios/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/andrefreitas/rocketchat-nagios/issues/6/comments","events_url":"https://api.github.com/repos/andrefreitas/rocketchat-nagios/issues/6/events","html_url":"https://github.com/andrefreitas/rocketchat-nagios/issues/6","id":209471838,"number":6,"title":"No state UP","user":{"login":"carlozleite","id":7604086,"avatar_url":"https://avatars3.githubusercontent.com/u/7604086?v=3","gravatar_id":"","url":"https://api.github.com/users/carlozleite","html_url":"https://github.com/carlozleite","followers_url":"https://api.github.com/users/carlozleite/followers","following_url":"https://api.github.com/users/carlozleite/following{/other_user}","gists_url":"https://api.github.com/users/carlozleite/gists{/gist_id}","starred_url":"https://api.github.com/users/carlozleite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlozleite/subscriptions","organizations_url":"https://api.github.com/users/carlozleite/orgs","repos_url":"https://api.github.com/users/carlozleite/repos","events_url":"https://api.github.com/users/carlozleite/events{/privacy}","received_events_url":"https://api.github.com/users/carlozleite/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-02-22T14:36:33Z","updated_at":"2017-03-23T00:25:08Z","closed_at":"2017-03-23T00:25:08Z","body":"Traceback (most recent call last):\r\n  File \"/usr/lib64/nagios/plugins/rocketchat.py\", line 109, in <module>\r\n    data = create_data(args, CONFIG)\r\n  File \"/usr/lib64/nagios/plugins/rocketchat.py\", line 80, in create_data\r\n    color = config[\"colors\"][state]\r\nKeyError: 'UP'\r\n\r\nSolve:\r\n\r\nCONFIG = {\r\n    \"avatar\": \"https://raw.githubusercontent.com/andrefreitas/rocketchat-nagios/master/images/nagios_128.png\", #noqa\r\n    \"alias\": \"Nagios\",\r\n    \"colors\": {\r\n        \"OK\": \"#36a64f\",\r\n        \"CRITICAL\": \"#d00000\",\r\n        \"WARNING\": \"#daa038\",\r\n        \"UNKNOWN\": \"#e3e4e6\",\r\n        \"DOWN\": \"#d00000\",\r\n        \"UP\":   \"#40b207\", <--------\r\n        \"UNKNOWN\": \"#e3e4e6\",\r\n        \"UNREACHABLE\": \"#e3e4e6\"\r\n    }\r\n"}}
{"actor":{"display_login":"andrefreitas"}}