Adding NIC statistics collection and reporting (#348)

This commit is contained in:
nycaleksey
2017-11-08 16:49:42 +07:00
committed by Franco Fichtner
parent 3e3f49763c
commit edd914313f
4 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
PLUGIN_NAME= telegraf
PLUGIN_VERSION= 1.0
PLUGIN_VERSION= 1.1
PLUGIN_COMMENT= Agent for collecting metrics and data
PLUGIN_DEPENDS= telegraf
PLUGIN_MAINTAINER= m.muenz@gmail.com
@@ -71,4 +71,10 @@
<type>checkbox</type>
<help>Read metrics about system load and uptime.</help>
</field>
<field>
<id>input.network</id>
<label>Network</label>
<type>checkbox</type>
<help>Read network interface metrics.</help>
</field>
</form>
@@ -51,5 +51,9 @@
<default>1</default>
<Required>N</Required>
</system>
<network type="BooleanField">
<default>0</default>
<Required>N</Required>
</network>
</items>
</model>
@@ -106,4 +106,8 @@
[[inputs.system]]
{% endif %}
{% if helpers.exists('OPNsense.telegraf.input.network') and OPNsense.telegraf.input.network == '1' %}
[[inputs.net]]
{% endif %}
{% endif %}