Net-SNMP Config - Advanced field missing

Started by wer, February 17, 2020, 10:41:09 AM

Previous topic - Next topic
Hi there

I am missing a "Advanced" field in the Net-SNMP config page.
Purpose of this is for example to add a custom SNMP MIB for external temperature monitoring.

Adding it to /usr/local/share/snmp/snmpd.conf works, but SSH access is required.

Example to add:
extend cpuTemp0 /sbin/sysctl dev.cpu.0.temperature | /usr/bin/sed 's/dev.cpu.0.temperature: //g' | /usr/bin/sed 's/C//g'
extend smartHealth0 /usr/local/sbin/smartctl --health /dev/ada0 | sed -n -e 's/^.*result: //p'

Editing the snmp settings removes the manually added lines.

Would it be possible to add this field to the GUI ?

Regards,
wer

Hi,

As a general policy we do wish to not support advanced fields because they can be security and stability risks.

You can -- however -- and for the benefit of everyone else -- request a specific feature to be added via:

https://github.com/opnsense/plugins/issues/new/choose


Cheers,
Franco