diff --git a/doc/Extensions/MIB-based-polling.md b/doc/Extensions/MIB-based-polling.md index d23d207dd6..cc95151531 100644 --- a/doc/Extensions/MIB-based-polling.md +++ b/doc/Extensions/MIB-based-polling.md @@ -144,6 +144,38 @@ graph. can follow the above process, then use the resultant data collected by LibreNMS in the RRD files or the database tables `device_oids` +## Configuration +### Main Configuration +In `/opt/librenms/config.php` add `$config['poller_modules']['mib'] = 1;` + +### Discovery + +You need to add your desired MIBs to `/opt/librenms/mibs` folder. Afterwards you need to register your MIBs to the discovery function. + +#### Example +`/opt/librenms/includes/discovery/os/f5.inc.php` + +``` + "F5-BIGIP-LOCAL-MIB", + ); + +### Actual registering of the MIB +register_mibs($device, $f5_mibs, "includes/discovery/os/f5.inc.php"); + +``` + +The important thing is the array $f5_mibs where you define which parts (ltmVirtualServStatEntry) of the MIB (F5-BIGIP-LOCAL-MIB) you are going to add. The registering is also important, otherwise poller cannot make use of the MIB. ## TODO ##