summaryrefslogtreecommitdiff
path: root/roles/install_monitoring/templates/ffmyk-influx/fastd.php.j2
diff options
context:
space:
mode:
authorNiklas Yann Wettengel <niyawe@niyawe.de>2018-07-22 13:14:46 +0200
committerNiklas Yann Wettengel <niyawe@niyawe.de>2018-07-22 13:14:46 +0200
commitda72f062bbfdabaafece6c466df222a23e70b7c6 (patch)
tree4252dae62479ecae43458a2e2e0d9d51b39dee25 /roles/install_monitoring/templates/ffmyk-influx/fastd.php.j2
parent4bfc6f1e293c2022d5238c1c09db130d80eea94d (diff)
updated influx-scripts
Diffstat (limited to 'roles/install_monitoring/templates/ffmyk-influx/fastd.php.j2')
-rw-r--r--roles/install_monitoring/templates/ffmyk-influx/fastd.php.j28
1 files changed, 6 insertions, 2 deletions
diff --git a/roles/install_monitoring/templates/ffmyk-influx/fastd.php.j2 b/roles/install_monitoring/templates/ffmyk-influx/fastd.php.j2
index 985d7d3..0cd05c3 100644
--- a/roles/install_monitoring/templates/ffmyk-influx/fastd.php.j2
+++ b/roles/install_monitoring/templates/ffmyk-influx/fastd.php.j2
@@ -26,9 +26,13 @@ function fastdGetPeers($file) {
return $peers;
}
-$fastd_1280 = fastdGetPeers('/run/ffmyk.socket');
+$data = "";
-$data = 'fastdclient,mtu=1280,host={{ ansible_hostname }},type=backend value='.$fastd_1280."\n";
+{% for site in sites %}
+$fastd_{{ site.name }} = fastdGetPeers('/run/ff{{ site.name }}1.socket');
+$data .= 'fastdclient,mtu=1280,host={{ ansible_hostname }},site={{ site.name }},type=backend value='.$fastd_{{ site.name }}."\n";
+
+{% endfor %}
sendflux($data);