mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net-mgmt/net-snmp: Add support for agentx (#2325)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
PLUGIN_NAME= net-snmp
|
||||
PLUGIN_VERSION= 1.4
|
||||
PLUGIN_VERSION= 1.5
|
||||
PLUGIN_REVISION= 1
|
||||
PLUGIN_COMMENT= Net-SNMP is a daemon for the SNMP protocol
|
||||
PLUGIN_DEPENDS= net-snmp
|
||||
|
||||
@@ -11,6 +11,10 @@ WWW: http://www.net-snmp.org
|
||||
Plugin Changelog
|
||||
----------------
|
||||
|
||||
1.5
|
||||
|
||||
* Add support for agentx.
|
||||
|
||||
1.4
|
||||
|
||||
* Include installed version number in extended OID
|
||||
|
||||
@@ -23,6 +23,12 @@
|
||||
<type>text</type>
|
||||
<help>Set the contact address to use.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.enableagentx</id>
|
||||
<label>Add AgentX Support</label>
|
||||
<type>checkbox</type>
|
||||
<help>Enable support for AgentX Application (FRR, others).</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.l3visibility</id>
|
||||
<label>Layer 3 Visibility</label>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<model>
|
||||
<mount>//OPNsense/netsnmp/general</mount>
|
||||
<description>Netsnmp configuration</description>
|
||||
<version>1.0.3</version>
|
||||
<version>1.0.4</version>
|
||||
<items>
|
||||
<enabled type="BooleanField">
|
||||
<default>0</default>
|
||||
@@ -27,6 +27,10 @@
|
||||
<default>0</default>
|
||||
<Required>Y</Required>
|
||||
</versionoid>
|
||||
<enableagentx type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>Y</Required>
|
||||
</enableagentx>
|
||||
<listen type="NetworkField">
|
||||
<FieldSeparator>,</FieldSeparator>
|
||||
<Required>N</Required>
|
||||
|
||||
@@ -12,6 +12,11 @@ agentAddress udp6:[{{ network }}]:161
|
||||
agentAddress udp:161,udp6:[::1]:161
|
||||
{% endif %}
|
||||
|
||||
{% if OPNsense.netsnmp.general.enableagentx == '1' %}
|
||||
master agentx
|
||||
agentxsocket /var/agentx/master
|
||||
agentxperms 777 777
|
||||
{% endif %}
|
||||
|
||||
{% if helpers.exists('OPNsense.netsnmp.general.community') and OPNsense.netsnmp.general.community != '' %}
|
||||
rocommunity {{ OPNsense.netsnmp.general.community }}
|
||||
|
||||
Reference in New Issue
Block a user