From eade06a930c16f5cb08edd454d9e41364edf8103 Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Mon, 20 Mar 2017 20:56:39 +0100 Subject: install_monitoring: added ffmyk-influx --- .../templates/ffmyk-influx/func.php.j2 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 roles/install_monitoring/templates/ffmyk-influx/func.php.j2 (limited to 'roles/install_monitoring/templates/ffmyk-influx/func.php.j2') diff --git a/roles/install_monitoring/templates/ffmyk-influx/func.php.j2 b/roles/install_monitoring/templates/ffmyk-influx/func.php.j2 new file mode 100644 index 0000000..fd2c248 --- /dev/null +++ b/roles/install_monitoring/templates/ffmyk-influx/func.php.j2 @@ -0,0 +1,17 @@ + array( + 'header' => "Authorization: Basic " . base64_encode("{{ influx_user }}:{{ influx_password }}") ."\r\nContent-type: application/x-www-form-urlencoded\r\n", + 'method' => 'POST', + 'content' => $data, + ), + ); + + $context = stream_context_create($options); + $result = file_get_contents($url, false, $context); +} + +?> -- cgit v1.2.3-54-g00ecf