mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net-mgmt/Telegraf: add checkbox for ssl verification (#676)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
PLUGIN_NAME= telegraf
|
||||
PLUGIN_VERSION= 1.3.1
|
||||
PLUGIN_VERSION= 1.4.0
|
||||
PLUGIN_COMMENT= Agent for collecting metrics and data
|
||||
PLUGIN_DEPENDS= telegraf
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
|
||||
@@ -59,6 +59,12 @@
|
||||
<type>text</type>
|
||||
<help>Use a specific output template. For usage see https://github.com/influxdata/telegraf/blob/master/docs/DATA_FORMATS_OUTPUT.md</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>output.graphite_verify</id>
|
||||
<label>Graphite SSL Verification</label>
|
||||
<type>checkbox</type>
|
||||
<help>This will enable verification of a secure connection to Graphite. Default is disabled for compatibility reasons.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>output.graylog_enable</id>
|
||||
<label>Enable Graylog Output</label>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<model>
|
||||
<mount>//OPNsense/telegraf/output</mount>
|
||||
<description>Telegraf outputs configuration</description>
|
||||
<version>1.1.0</version>
|
||||
<version>1.2.0</version>
|
||||
<items>
|
||||
<influx_enable type="BooleanField">
|
||||
<default>0</default>
|
||||
@@ -40,6 +40,10 @@
|
||||
<graphite_template type="TextField">
|
||||
<Required>N</Required>
|
||||
</graphite_template>
|
||||
<graphite_verify type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>N</Required>
|
||||
</graphite_verify>
|
||||
<graylog_enable type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>N</Required>
|
||||
|
||||
@@ -69,7 +69,11 @@
|
||||
template = "{{ OPNsense.telegraf.output.graphite_template }}"
|
||||
{% endif %}
|
||||
timeout = 2
|
||||
{% if helpers.exists('OPNsense.telegraf.output.graphite_verify') and OPNsense.telegraf.output.graphite_verify == '0' %}
|
||||
insecure_skip_verify = true
|
||||
{% else %}
|
||||
insecure_skip_verify = false
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if helpers.exists('OPNsense.telegraf.output.graylog_enable') and OPNsense.telegraf.output.graylog_enable == '1' %}
|
||||
|
||||
Reference in New Issue
Block a user