net-mgmt/collectd: Add tcpconns and ipstats plugins (#2514)

This commit is contained in:
Michael 2021-09-09 09:53:32 +02:00 committed by GitHub
parent 2e1f6fa47e
commit 9004ee4877
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 36 additions and 4 deletions

View file

@ -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

View file

@ -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)

View file

@ -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>

View file

@ -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>

View file

@ -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 #
#----------------------------------------------------------------------------#