Creating a ZenPack in Zenoss

So we have Zenoss installed and want to begin customizing it. The first thing we want to do is create a ZenPack to hold all customizations, that way we can backup and export the customizations and import them elsewhere as needed.

Create the ZenPack

  1. In the task pane, select Management | Settings
  2. Select the ZenPacks tab
  3. Click the drop-down and select Create a ZenPack
  4. Enter the name for the ZenPack – best practice suggests to use the format of ZenPacks..

To add objects into the ZenPack, you can copy files in to the ZenPack directory on the linux system.
Most Zenoss configurations are stored under the $ZENOSS directory, on Ubuntu this directory is /usr/local/zenoss/zenoss, but it can be different for each installation. ZenPack files are stored in $ZENHOME/ZenPacks/ZenPacks../ZenPacks//, so if your ZenPack is named ZenPacks.CompanyXYZ.BasicWindows, the files would be stored in $ZENHOME/ZenPacks/ZenPacks.CompanyXYZ.BasicWindows/ZenPacks/CompanyXYZ/BasicWindows/
To include a custom script in the ZenPack, you would simply copy the file to the $ZENHOME/ZenPacks/ZenPacks.<company>.<name>/ZenPacks/<company>/<name>/lib directory, and then reference the script accordingly.

Leave a Reply