Improve README; check-http
-check-http
-==========
+# check-http
-Check http.
+## Description
+
+Check about http connection.
## Synopsis
+```
+check-http -u http://example.com
+```
-```shell
+## Installation
+
+First, build this program.
+
+```
+go get github.com/mackerelio/go-check-plugins
+cd $(go env GOPATH)/src/github.com/mackerelio/go-check-plugins/check-http
+go install
+```
+
+Or you can use this program by installing the official Mackerel package. See [Using the official check plugin pack for check monitoring - Mackerel Docs](https://mackerel.io/docs/entry/howto/mackerel-check-plugins).
+
+
+Next, you can execute this program :-)
+
+```
check-http -u http://example.com
```
+
+## Setting for mackerel-agent
+
+If there are no problems in the execution result, add s setting in mackerel-agent.conf .
+
+```
+[plugin.checks.check-http-sample]
+command = ["check-http", "-u", "http://example.com"]
+```
+
+## Usage
+### Options
+
+```
+ -u, --url= A URL to connect to
+ -s, --status= mapping of HTTP status
+ --no-check-certificate Do not check certificate
+ -i, --source-ip= source IP address
+ -H= HTTP request headers
+ -p, --pattern= Expected pattern in the content
+ --max-redirects= Maximum number of redirects followed (default: 10)
+ --connect-to=HOST1:PORT1:HOST2:PORT2 Request to HOST2:PORT2 instead of HOST1:PORT1
+```
+
+
To override status
```shell
check-http -s 404=ok -u http://example.com
@@ -23,3 +67,7 @@ check-http --connect-to=example.com::127.0.0.1:8080 https://example.com # empty
check-http --connect-to=localhost:443::8080 https://localhost # empty host2 means unchanged, therefore will request to localhost:8080 AS localhost:443
check-http --connect-to=example.com:443:127.0.0.1: https://example.com # empty port2 means unchanged, therefore will request to 127.0.0.1:443
```
+
+## For more information
+
+Please execute `check-http -h` and you can get command line options.
