mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
net-mgmt/collectd: Add tcpconns and ipstats plugins (#2514)
This commit is contained in:
parent
2e1f6fa47e
commit
9004ee4877
5 changed files with 36 additions and 4 deletions
|
|
@ -1,6 +1,5 @@
|
|||
PLUGIN_NAME= collectd
|
||||
PLUGIN_VERSION= 1.3
|
||||
PLUGIN_REVISION= 1
|
||||
PLUGIN_VERSION= 1.4
|
||||
PLUGIN_COMMENT= Collect system and application performance metrics periodically
|
||||
PLUGIN_DEPENDS= collectd5
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
|
|
|
|||
|
|
@ -7,6 +7,11 @@ in RRD files.
|
|||
Plugin Changelog
|
||||
================
|
||||
|
||||
1.4
|
||||
|
||||
* Add ipstats plugin
|
||||
* Add tcpconns plugin
|
||||
|
||||
1.3
|
||||
|
||||
* Add support for CPU aggregation (contributed by @pmhausen)
|
||||
|
|
|
|||
|
|
@ -191,4 +191,16 @@
|
|||
<type>checkbox</type>
|
||||
<help>The Users plugin counts the number of users currently logged into the system (SSH).</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.p_tcpconns</id>
|
||||
<label>Enable tcpconns plugin</label>
|
||||
<type>checkbox</type>
|
||||
<help>The tcpconns plugin lists a summary of all tcp connections.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.p_ipstats</id>
|
||||
<label>Enable ipstats plugin</label>
|
||||
<type>checkbox</type>
|
||||
<help>The ipstats plugin lists multiple interface stats.</help>
|
||||
</field>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<model>
|
||||
<mount>//OPNsense/collectd/general</mount>
|
||||
<description>Collectd configuration</description>
|
||||
<version>1.0.2</version>
|
||||
<version>1.0.3</version>
|
||||
<items>
|
||||
<enabled type="BooleanField">
|
||||
<default>0</default>
|
||||
|
|
@ -133,5 +133,13 @@
|
|||
<default>1</default>
|
||||
<Required>N</Required>
|
||||
</p_users_enable>
|
||||
<p_tcpconns type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>N</Required>
|
||||
</p_tcpconns>
|
||||
<p_ipstats type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>N</Required>
|
||||
</p_ipstats>
|
||||
</items>
|
||||
</model>
|
||||
|
|
|
|||
|
|
@ -58,7 +58,15 @@ LoadPlugin users
|
|||
{% if helpers.exists('OPNsense.collectd.general.p_graphite_enable') and OPNsense.collectd.general.p_graphite_enable == '1' %}
|
||||
LoadPlugin write_graphite
|
||||
{% endif %}
|
||||
|
||||
{% if helpers.exists('OPNsense.collectd.general.p_tcpconns') and OPNsense.collectd.general.p_tcpconns == '1' %}
|
||||
LoadPlugin tcpconns
|
||||
<Plugin tcpconns>
|
||||
AllPortsSummary true
|
||||
</Plugin>
|
||||
{% endif %}
|
||||
{% if helpers.exists('OPNsense.collectd.general.p_ipstats') and OPNsense.collectd.general.p_ipstats == '1' %}
|
||||
LoadPlugin ipstats
|
||||
{% endif %}
|
||||
##############################################################################
|
||||
# Plugin configuration #
|
||||
#----------------------------------------------------------------------------#
|
||||
|
|
|
|||
Loading…
Reference in a new issue