Adding first custom mib for discovery

Hello,

====================================

Component Version
LibreNMS 1.70.1-36-g41f1436c1
DB Schema 2020_10_12_095504_mempools_add_oids (191)
PHP 7.4.3
Python 3.8.5
MySQL 10.3.25-MariaDB-0ubuntu0.20.04.1
RRDTool 1.7.2
SNMP NET-SNMP 5.8

====================================

[OK] Composer Version: 2.0.8
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

I’m showing my work LibreNMS this week and won’t to show them them we can move away from Solarwinds NPM.

I’m got lots of devices in there now that look great and have been detected perfectly.

I now need to add a custom device that Solarwinds NPM monitors using an imported custom MIB.

In LibreNMS I’ve copied it to the mib file to:

/opt/librenms/mibs/MY-NEW-MIB/

I think I then need to add the above mib_dir somewhere?

I believe I now have to create a .yaml file in includes/definitions/discovery/.yaml?

Which is confusing to me, probably because I panicking to get this done for the meeting. I’ve looked at this https://docs.librenms.org/Developing/os/Initial-Detection/#mibs

Anyone done this before?

My Mib https://pastebin.com/JTp7VwqE

Thanks

Take a look at some other implementations for inspiration; https://github.com/librenms/librenms/pulls?q=is%3Apr+label%3A"Device+%3Adesktop_computer%3A"+is%3Aclosed

This topic was automatically closed 730 days after the last reply. New replies are no longer allowed.