refactor: Move OS definitions into yaml files (#5189)

This commit is contained in:
Neil Lathwood
2016-12-23 17:53:19 +00:00
committed by GitHub
parent 6d027c5753
commit f5a16be0e3
315 changed files with 10839 additions and 2868 deletions

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.