This section describes the files and directory structures that make up most ZenPacks. A more detailed source of information about Python eggs, entry points and other technical details of building eggs is found here.
Note
The $ZENHOME/Products/ZenModel/ZenPackTemplate
directory contains the template files and directories used when Zenoss creates a ZenPack. If you decide to change these files, note that these changes will not be preserved across upgrades.
A ZenPack has the concept of a namespace, so that multiple people or organizations can create similar ZenPack names without their code colliding with each other. In this example, the name of the ZenPack is ZenPacks.
, where pkg
.zpid
pkg
is the package name and zpid
is the ZenPack id.
In the $ZENHOME/ZenPacks/
directory, you will find the directory ZenPacks.
with the following contents (abbreviated for clarity):pkg
.zpid
build


pkg
.zpid
-version_id
-py2.4.egg INSTALL.txt README.txt setup.py 

pkg
ZenPacks/pkg
/__init__.py ZenPacks/pkg
/zpid

pkg
/zpid
/__init__.py 
pkg
/zpid
/daemons 
pkg
/zpid
/datasources 
pkg
/zpid
/datasources/__init__.py ZenPacks/pkg
/zpid
/lib 
pkg
/zpid
/lib/__init__.py ZenPacks/pkg
/zpid
/libexec 
pkg
/zpid
/migrate 
pkg
/zpid
/migrate/__init__.py ZenPacks/pkg
/zpid
/modeler 
pkg
/zpid
/modeler/__init__.py ZenPacks/pkg
/zpid
/modeler/plugins ZenPacks/pkg
/zpid
/modeler/plugins/__init__.py ZenPacks/pkg
/zpid
/objects 
pkg
/zpid
/objects/objects.xml ZenPacks/pkg
/zpid
/parsers 
pkg
/zpid
/parsers/__init__.py ZenPacks/pkg
/zpid
/reports 
pkg
/zpid
/services (16) ZenPacks/pkg
/zpid
/services/__init__.py ZenPacks/pkg
/zpid
/skins (17) ZenPacks/pkg
/zpid
/skins/ZenPacks.pkg
.zpid
ZenPacks.pkg
.zpid
.egg-info (18) ZenPacks.pkg
.zpid
.egg-info/entry_points.txt ZenPacks.pkg
.zpid
.egg-info/namespace_packages.txt ZenPacks.pkg
.zpid
.egg-info/not-zip-safe ZenPacks.pkg
.zpid
.egg-info/PKG-INFO ZenPacks.pkg
.zpid
.egg-info/SOURCES.txt ZenPacks.pkg
.zpid
.egg-info/top_level.txt