mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	refactor: Move OS definitions into yaml files (#5189)
This commit is contained in:
		| @@ -90,7 +90,7 @@ $config['discovery_modules']['charge']                    = 1; | ||||
|  | ||||
| #### OS based Discovery config | ||||
|  | ||||
| You can enable or disable modules for a specific OS by add corresponding line in `includes/definitions.inc.php` | ||||
| You can enable or disable modules for a specific OS by add corresponding line in `includes/definitions/$os.yaml` | ||||
| OS based settings have preference over global. Device based settings have preference over all others | ||||
|  | ||||
| Discover performance improvement can be achieved by deactivating all modules that are not supported by specific OS. | ||||
|   | ||||
| @@ -247,8 +247,8 @@ The easiest way to show you how to do that is to link to an existing pull reques | ||||
|  | ||||
| To go into a bit more detail, the following are usually needed: | ||||
|  | ||||
| **includes/definitions.inc.php** | ||||
| Update this file to include the required definitions for the new OS. | ||||
| **includes/definitions/$os.yaml** | ||||
| Create this file to include the required definitions for the new OS. | ||||
| **includes/discovery/os/ciscowlc.inc.php** | ||||
| This file just sets the $os variable, done by checking the SNMP tree for a particular value that matches the OS you are adding.  Typically, this will come from the presence of specific values in | ||||
| sysObjectID or sysDescr, or the existence of a particular enterprise tree. | ||||
|   | ||||
| @@ -78,7 +78,7 @@ $config['poller_modules']['mib']                          = 0; | ||||
|  | ||||
| #### OS based Poller config | ||||
|  | ||||
| You can enable or disable modules for a specific OS by add corresponding line in `includes/definitions.inc.php` | ||||
| You can enable or disable modules for a specific OS by add corresponding line in `includes/definitions/$os.yaml` | ||||
| OS based settings have preference over global. Device based settings have preference over all others | ||||
|  | ||||
| Poller performance improvement can be achieved by deactivating all modules that are not supported by specific OS. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user