mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net-mgmt/net-snmp: allow to call opnsense-version via snmp (#1684)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
PLUGIN_NAME= net-snmp
|
||||
PLUGIN_VERSION= 1.3
|
||||
PLUGIN_VERSION= 1.4
|
||||
PLUGIN_COMMENT= Net-SNMP is a daemon for the SNMP protocol
|
||||
PLUGIN_DEPENDS= net-snmp
|
||||
PLUGIN_MAINTAINER= m.muenz@gmail.com
|
||||
|
||||
@@ -6,3 +6,11 @@ Net-SNMP is a suite of applications used to implement
|
||||
SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6.
|
||||
|
||||
WWW: http://www.net-snmp.org
|
||||
|
||||
|
||||
Plugin Changelog
|
||||
----------------
|
||||
|
||||
1.4
|
||||
|
||||
* Include installed version number in extended OID
|
||||
|
||||
@@ -29,6 +29,12 @@
|
||||
<type>checkbox</type>
|
||||
<help>Make this device visible as Layer 3 enabled.</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.versionoid</id>
|
||||
<label>Display Verion in OID</label>
|
||||
<type>checkbox</type>
|
||||
<help>This let you fetch the current installed version via .1.3.6.1.4.1.8072.1.3.2.3.1.2.7.118.101.114.115.105.111.110</help>
|
||||
</field>
|
||||
<field>
|
||||
<id>general.listen</id>
|
||||
<label>Listen IPs</label>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<model>
|
||||
<mount>//OPNsense/netsnmp/general</mount>
|
||||
<description>Netsnmp configuration</description>
|
||||
<version>1.0.1</version>
|
||||
<version>1.0.3</version>
|
||||
<items>
|
||||
<enabled type="BooleanField">
|
||||
<default>0</default>
|
||||
@@ -22,7 +22,11 @@
|
||||
<l3visibility type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>Y</Required>
|
||||
</l3visibility>
|
||||
</l3visibility>
|
||||
<versionoid type="BooleanField">
|
||||
<default>0</default>
|
||||
<Required>Y</Required>
|
||||
</versionoid>
|
||||
<listen type="NetworkField">
|
||||
<FieldSeparator>,</FieldSeparator>
|
||||
<Required>N</Required>
|
||||
|
||||
@@ -39,4 +39,8 @@ sysContact {{ OPNsense.netsnmp.general.syscontact }}
|
||||
sysServices 76
|
||||
{% endif %}
|
||||
|
||||
{% if helpers.exists('OPNsense.netsnmp.general.versionoid') and OPNsense.netsnmp.general.versionoid == '1' %}
|
||||
extend version /usr/local/sbin/opnsense-version
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user