{"action":"opened","issue":{"url":"https://api.github.com/repos/bosun-monitor/bosun/issues/1923","repository_url":"https://api.github.com/repos/bosun-monitor/bosun","labels_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/1923/labels{/name}","comments_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/1923/comments","events_url":"https://api.github.com/repos/bosun-monitor/bosun/issues/1923/events","html_url":"https://github.com/bosun-monitor/bosun/issues/1923","id":181002709,"number":1923,"title":"config validation","user":{"login":"jarnoux","id":1254903,"avatar_url":"https://avatars.githubusercontent.com/u/1254903?v=3","gravatar_id":"","url":"https://api.github.com/users/jarnoux","html_url":"https://github.com/jarnoux","followers_url":"https://api.github.com/users/jarnoux/followers","following_url":"https://api.github.com/users/jarnoux/following{/other_user}","gists_url":"https://api.github.com/users/jarnoux/gists{/gist_id}","starred_url":"https://api.github.com/users/jarnoux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarnoux/subscriptions","organizations_url":"https://api.github.com/users/jarnoux/orgs","repos_url":"https://api.github.com/users/jarnoux/repos","events_url":"https://api.github.com/users/jarnoux/events{/privacy}","received_events_url":"https://api.github.com/users/jarnoux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-04T20:56:36Z","updated_at":"2016-10-04T20:56:36Z","closed_at":null,"body":"Hello, the api at `/api/config_test` returns status code `200` for the following config:\r\n\r\n```\r\nalert bZXdL {\r\n\r\n    $query_st0 = \"blahblahblah\"\r\n    $result_st0 = helloworld($query_st0, \"1\", \"\", \"\")\r\n    $st0 = avg($result_st0)\r\n\r\n    crit = $st0 below 3 # <- this line is incorrect\r\n    warn = $st0 below 4 # <- this line is incorrect\r\n}\r\n```\r\n\r\nof course the word `below` should instead be `<`, and it was a bug on my part that bosun didn't catch.\r\n\r\nAfter validation passes, trying to start bosun with this config makes it crash.\r\n\r\nThanks,\r\nJacques"}}
{"actor":{"display_login":"jarnoux"}}