- Notifications
You must be signed in to change notification settings - Fork1
Interfaces for LibreNMS plugins
License
NotificationsYou must be signed in to change notification settings
librenms/plugin-interfaces
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Plugins forLibreNMShttps://github.com/librenms/librenms
Create a new Laravel Package as described:https://laravel.com/docs/packages
Require this package
composer require librenms/plugin-interfacesRegister your plugin with LibreNMS in your provider boot method and check to see if it is enabled:
publicfunctionboot():void {$pluginName ='example-plugin';$pluginManager =$this->app->make(\LibreNMS\Interfaces\Plugins\PluginManagerInterface::class);$pluginManager->publishHook($pluginName, \LibreNMS\Interfaces\Plugins\MenuEntryHook::class, MenuEntryHook::class);if (!$pluginManager->pluginEnabled($pluginName)) {return;// if plugin is disabled, don't boot }// Do regular Laravel Package actions here, such as register routes and views or publish files. }
About
Interfaces for LibreNMS plugins
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.