{"action":"created","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/2226","labels_url":"https://api.github.com/repos/grafana/grafana/issues/2226/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/2226/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/2226/events","html_url":"https://github.com/grafana/grafana/issues/2226","id":90963166,"number":2226,"title":"Error on monitoring  grafana HTTP status code  with curl  ","user":{"login":"toni-moreno","id":5883405,"avatar_url":"https://avatars.githubusercontent.com/u/5883405?v=3","gravatar_id":"","url":"https://api.github.com/users/toni-moreno","html_url":"https://github.com/toni-moreno","followers_url":"https://api.github.com/users/toni-moreno/followers","following_url":"https://api.github.com/users/toni-moreno/following{/other_user}","gists_url":"https://api.github.com/users/toni-moreno/gists{/gist_id}","starred_url":"https://api.github.com/users/toni-moreno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toni-moreno/subscriptions","organizations_url":"https://api.github.com/users/toni-moreno/orgs","repos_url":"https://api.github.com/users/toni-moreno/repos","events_url":"https://api.github.com/users/toni-moreno/events{/privacy}","received_events_url":"https://api.github.com/users/toni-moreno/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-25T13:21:37Z","updated_at":"2015-06-25T15:00:27Z","closed_at":"2015-06-25T15:00:27Z","body":"Hi . I'm working on monitoring grafana status and performance, for this reason I'm  working in a script to get OK if grafana is running and ok better than only checking the pid existence.\r\n\r\nFor this reason I would like to get the HTTP response code and the client side response time with curl\r\n\r\nwith the browser http://mygrafana.myorg.com is running ok, but getting from localhost the HTTP response code it got code 404.\r\n\r\n```\r\nroot: > curl -s -I http://mygrafana.myorg.com\r\nHTTP/1.1 404 Not Found\r\nContent-Type: text/html; charset=UTF-8\r\nSet-Cookie: grafana_sess=c939ab4970300112; Path=/; HttpOnly\r\nDate: Thu, 25 Jun 2015 12:45:34 GMT\r\n```\r\n\r\n__What url could  I test with curl to get a valid  HTTP response code if grafana is up and running?.__\r\n"},"comment":{"url":"https://api.github.com/repos/grafana/grafana/issues/comments/115285322","html_url":"https://github.com/grafana/grafana/issues/2226#issuecomment-115285322","issue_url":"https://api.github.com/repos/grafana/grafana/issues/2226","id":115285322,"user":{"login":"torkelo","id":10999,"avatar_url":"https://avatars.githubusercontent.com/u/10999?v=3","gravatar_id":"","url":"https://api.github.com/users/torkelo","html_url":"https://github.com/torkelo","followers_url":"https://api.github.com/users/torkelo/followers","following_url":"https://api.github.com/users/torkelo/following{/other_user}","gists_url":"https://api.github.com/users/torkelo/gists{/gist_id}","starred_url":"https://api.github.com/users/torkelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torkelo/subscriptions","organizations_url":"https://api.github.com/users/torkelo/orgs","repos_url":"https://api.github.com/users/torkelo/repos","events_url":"https://api.github.com/users/torkelo/events{/privacy}","received_events_url":"https://api.github.com/users/torkelo/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T15:00:27Z","updated_at":"2015-06-25T15:00:27Z","body":"that is because curl -I executes a HEAD http operation, which are not wired up (pretty unusual to do this for a web application)\r\n\r\nTry this:\r\n`curl -s -I -X GET http://mygrafana.myorg.com`"}}