net-mgmt/net-snmp: Add support for agentx (#2325)

This commit is contained in:
Joshua Schmidlkofer
2021-04-23 11:08:43 +02:00
committed by GitHub
parent 09c28f831e
commit 73b0e36f12
5 changed files with 21 additions and 2 deletions
+1 -1
View File
@@ -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
+4
View File
@@ -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 }}