OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: gbn on May 01, 2024, 10:27:19 AM

Title: addition to snmpd.conf to monitor disk usage
Post by: gbn on May 01, 2024, 10:27:19 AM
Hello,

version 24.1.6

I am trying to monitor hard drive usage.
Out of the box I get this, when snmpwaking the regular OID .1.3.6.1.4.1.2021.9.1
UCD-SNMP-MIB::dskEntry = No Such Object available on this agent at this OID

When I add the info about hard drive monitoring to snmpd.conf, I get all the results I need from this OID
echo "includeAllDisks 10%" >> /usr/local/share/snmp/snmpd.conf
killall -HUP snmpd

Is there a way to add this option in a less hackery way, or could a feature be added to the services>net-snmp web interface section ? for example, a checkbox to enable hardcrive monitoring and a text field to set the value ?

Title: Re: addition to snmpd.conf to monitor disk usage
Post by: Patrick M. Hausen on May 01, 2024, 11:00:52 AM
The HOST-RESOURCES-MIB contains all the storage values.

https://mibs.observium.org/mib/HOST-RESOURCES-MIB/