-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
387 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
============================================================================== | ||
Specific Examples of ZPG Use Cases | ||
============================================================================== | ||
This document will provide specific use cases and fragments that will | ||
hopefully guide the users onto a higher plane of ZPG conciousness. | ||
|
||
Devices without a Root | ||
============================================================================== | ||
|
||
OracleDB:: | ||
|
||
In this example OracleDB is a device that inherits its /Device base from the | ||
parent server, be it Linux, AIX, Solaris, or some "other" operating system. | ||
This means that it needs to be able to patch itself underneath the device tree | ||
of that server target type and not have a stand-alone device root. | ||
|
||
Thus inside of ZenPacks.zenoss.OracleDB/ZenPacks/zenoss/OracleDB/__init__.py | ||
we should see: | ||
|
||
__init__.py:: | ||
|
||
# Define new device relations. | ||
NEW_DEVICE_RELATIONS = ( | ||
('instance', 'OracleInstance'), | ||
('storage', 'OracleStorage'), | ||
('rac', 'OracleRAC'), | ||
('schema', 'OracleSchema'), | ||
) | ||
|
||
In order to achieve this you must remove the entire "deviceType" structure out of | ||
the ZPG json file; | ||
|
||
OracleDB.json Example:: | ||
|
||
{ | ||
"id": "ZenPacks.zenoss.OracleDB", | ||
"author": "Zenoss", | ||
"version": "0.0.1", | ||
"compat_zenoss_vers": ">=4.2", | ||
|
||
"deviceClasses": [{ | ||
"path": "", | ||
|
||
"componentTypes": [ | ||
{ | ||
"name": "Instance", | ||
"meta_type": "OracleInstance", | ||
"properties": [ | ||
{"name": "sid"}, | ||
{"name": "name_label"}, | ||
{"name": "connectionString", "Type": "string"}, | ||
{"name": "hostname"}, | ||
{"name": "oracleVersion"}, | ||
{"name": "databaseName"}, | ||
{"name": "databaseDBID"}, | ||
{"name": "databasePlatformName"}, | ||
{"name": "RACnetworkPeers"}, | ||
{"name": "instanceRole"}, | ||
{"name": "publicIP"}, | ||
{"name": "interconnectIP"} | ||
] | ||
},... | ||
}].... | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.