Add support for the http_check plugin

Change-Id: I9f5a9e2a59c9eb3e377eba05638a3b83db90dbcb
diff --git a/collectd/files/collectd_http_check.conf b/collectd/files/collectd_http_check.conf
new file mode 100644
index 0000000..6246e3b
--- /dev/null
+++ b/collectd/files/collectd_http_check.conf
@@ -0,0 +1,12 @@
+{%- if plugin.get('url', {})|length > 0 %}
+Import "http_check"
+
+<Module "http_check">
+  MaxRetries "3"
+  Timeout "1"
+  {%- for name, params in plugin.url.iteritems() %}
+  ExpectedCode "{{ name }}" "{{ params.expected_code }}"
+  Url "{{ name }}" "{{ params.url }}"
+  {%- endfor %}
+</Module>
+{%- endif %}
diff --git a/collectd/meta/collectd.yml b/collectd/meta/collectd.yml
index 11d7e44..c8391c0 100644
--- a/collectd/meta/collectd.yml
+++ b/collectd/meta/collectd.yml
@@ -53,3 +53,7 @@
     plugin: python
     template: collectd/files/collectd_check_local_endpoint.conf
     endpoint: {}
+  collectd_http_check:
+    plugin: python
+    template: collectd/files/collectd_http_check.conf
+    url: {}