net-mgmt/telegraf: add telegraf.d as config include (#2413)

This commit is contained in:
Michael
2021-06-03 13:16:21 +02:00
committed by GitHub
parent 12b943c41a
commit 2cb55cb5b2
4 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
PLUGIN_NAME= telegraf
PLUGIN_VERSION= 1.10.1
PLUGIN_VERSION= 1.11.0
PLUGIN_COMMENT= Agent for collecting metrics and data
PLUGIN_DEPENDS= telegraf
PLUGIN_MAINTAINER= m.muenz@gmail.com
+4
View File
@@ -12,6 +12,10 @@ WWW: https://www.influxdata.com/time-series-platform/telegraf/
Plugin Changelog
================
1.11.0
* Set telegraf.d as additional config include
1.10.1
* Fix Suricata input controller being the output section and incorrect statement
@@ -1,7 +1,7 @@
#!/bin/sh
mkdir -p /var/log/telegraf
chown -R telegraf:telegraf /var/log/telegraf
chmod 750 /var/log/telegraf
mkdir -p /usr/local/etc/telegraf.d /var/log/telegraf
chown -R telegraf:telegraf /usr/local/etc/telegraf.d /var/log/telegraf
chmod 750 /usr/local/etc/telegraf.d /var/log/telegraf
/usr/sbin/pw groupmod proxy -m telegraf
@@ -1,6 +1,7 @@
{% if helpers.exists('OPNsense.telegraf.general.enabled') and OPNsense.telegraf.general.enabled == '1' %}
telegraf_var_script="/usr/local/opnsense/scripts/OPNsense/Telegraf/setup.sh"
telegraf_enable="YES"
telegraf_confdir="/usr/local/etc/telegraf.d"
{% else %}
telegraf_enable="NO"
{% endif %}