This adds the MIBs for OpenBSD's snmpd, and code to detect sensors exported via OPENBSD-SENSORS-MIB. (The standard kernel supports many sensor types - on-board, USB, onewire, IPMI - and exports via a standard sysctl interface which is picked up by snmpd).
add MIBs for OpenBSD's snmpd
detect OpenBSD sensors
Auto-Deploy finished, Test PR at http://2113.ci.librenms.org or https://2113.ci.librenms.org
Could you please split up all the sensors in the existing structures?
Is that really preferable? I took the same approach as the existing sensors-netscaler.inc.php and entity-sensor.inc.php files, which deal with the same situation (SNMP server exporting a single table of sensors with all different types together).
Looking at existing discovery code from the type-specific subdirectories, these seem to be for devices which has a separate table per sensor type, e.g. lm-sensors has lmTempSensorsDevice and lmFanSensorsDevice, mikrotik has mtxrHlActiveFan, mtxrHlTemperature and mtxrHlVoltage, etc.
If it were split into subdirectories we'd need to loop through the table multiple times, once to pull out temperature sensors, once for voltages, etc. It's possible of course, but seems much less efficient.
kk makes sense 👍
Could you just post the link/s to the MIBs here so we have them for the log?
for the log
Certainly - they're mainly distributed as part of OpenBSD, so probably the best link is to the source repo so if they're updated you can pick up newer versions - http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/share/snmp/
nice, thanks :)
thank you for contributing :)