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.zpidpkg 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
 build/bdist.linux-i686 build/lib build/lib/ZenPacks ... dist
 build/bdist.linux-i686 build/lib build/lib/ZenPacks ... dist  dist/ZenPacks.
 dist/ZenPacks.pkg.zpid-version_id-py2.4.egg INSTALL.txt README.txt setup.py  ZenPacks
 ZenPacks  ZenPacks/__init__.py ZenPacks/
 ZenPacks/__init__.py ZenPacks/pkg ZenPacks/pkg/__init__.py ZenPacks/pkg/zpid  ZenPacks/
 ZenPacks/pkg/zpid/__init__.py  ZenPacks/
 ZenPacks/pkg/zpid/daemons  ZenPacks/
 ZenPacks/pkg/zpid/datasources  ZenPacks/
 ZenPacks/pkg/zpid/datasources/__init__.py ZenPacks/pkg/zpid/lib  ZenPacks/
 ZenPacks/pkg/zpid/lib/__init__.py ZenPacks/pkg/zpid/libexec  ZenPacks/
 ZenPacks/pkg/zpid/migrate  ZenPacks/
 ZenPacks/pkg/zpid/migrate/__init__.py ZenPacks/pkg/zpid/modeler  ZenPacks/
 ZenPacks/pkg/zpid/modeler/__init__.py ZenPacks/pkg/zpid/modeler/plugins ZenPacks/pkg/zpid/modeler/plugins/__init__.py ZenPacks/pkg/zpid/objects  ZenPacks/
 ZenPacks/pkg/zpid/objects/objects.xml ZenPacks/pkg/zpid/parsers  ZenPacks/
 ZenPacks/pkg/zpid/parsers/__init__.py ZenPacks/pkg/zpid/reports  ZenPacks/
 ZenPacks/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


 
     
