Add collectd check plugin
diff --git a/nginx/files/collectd_nginx_check.conf b/nginx/files/collectd_nginx_check.conf
new file mode 100644
index 0000000..325c5e4
--- /dev/null
+++ b/nginx/files/collectd_nginx_check.conf
@@ -0,0 +1,6 @@
+Import "collectd_nginx_check"
+
+<Module "collectd_nginx_check">
+ Url "{{ plugin.url }}"
+</Module>
+
diff --git a/nginx/meta/collectd.yml b/nginx/meta/collectd.yml
index 1db71e1..3a9af83 100644
--- a/nginx/meta/collectd.yml
+++ b/nginx/meta/collectd.yml
@@ -7,5 +7,9 @@
plugin: nginx
template: nginx/files/collectd_nginx.conf
url: http://localhost:{{ server.site.nginx_stats_server.host.port }}
+ collectd_nginx_check:
+ plugin: python
+ template: nginx/files/collectd_nginx_check.conf
+ url: http://localhost:{{ server.site.nginx_stats_server.host.port }}
{%- endif %}
{%- endif %}