net-mgmt/net-snmp Add Observium extended OIDs (#4301)

Add OIDs and script for the Observium network management system.

https://docs.observium.org/device_linux/

(Adapted for FreeBSD)
This commit is contained in:
Patrick M. Hausen
2024-10-18 11:01:23 +02:00
committed by Franco Fichtner
parent e0838b9ef9
commit f0d52376a5
6 changed files with 628 additions and 3 deletions
+1 -2
View File
@@ -1,6 +1,5 @@
PLUGIN_NAME= net-snmp
PLUGIN_VERSION= 1.5
PLUGIN_REVISION= 5
PLUGIN_VERSION= 1.6
PLUGIN_COMMENT= Net-SNMP is a daemon for the SNMP protocol
PLUGIN_DEPENDS= net-snmp
PLUGIN_MAINTAINER= m.muenz@gmail.com
+4
View File
@@ -11,6 +11,10 @@ WWW: http://www.net-snmp.org
Plugin Changelog
----------------
1.6
* Add support for Observium (contributed by Patrick M. Hausen)
1.5
* Add support for agentx
@@ -29,6 +29,12 @@
<type>checkbox</type>
<help>Enable support for AgentX Application (FRR, others).</help>
</field>
<field>
<id>general.enableobservium</id>
<label>Add Observium Support</label>
<type>checkbox</type>
<help>Enable extended OIDs for Observium NMS.</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.4</version>
<version>1.0.5</version>
<items>
<enabled type="BooleanField">
<default>0</default>
@@ -31,6 +31,10 @@
<default>0</default>
<Required>Y</Required>
</enableagentx>
<enableobservium type="BooleanField">
<default>0</default>
<Required>Y</Required>
</enableobservium>
<listen type="NetworkField">
<FieldSeparator>,</FieldSeparator>
<Required>N</Required>
File diff suppressed because it is too large Load Diff
@@ -18,6 +18,13 @@ agentxsocket /var/agentx/master
agentxperms 777 777
{% endif %}
{% if OPNsense.netsnmp.general.enableobservium == '1' %}
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/local/opnsense/scripts/OPNsense/Netsnmp/distro.sh
extend .1.3.6.1.4.1.2021.7890.2 hardware /bin/kenv smbios.planar.product
extend .1.3.6.1.4.1.2021.7890.3 vendor /bin/kenv smbios.planar.maker
extend .1.3.6.1.4.1.2021.7890.4 serial /bin/kenv smbios.planar.serial
{% endif %}
{% if helpers.exists('OPNsense.netsnmp.general.community') and OPNsense.netsnmp.general.community != '' %}
rocommunity {{ OPNsense.netsnmp.general.community }}
rocommunity6 {{ OPNsense.netsnmp.general.community }}