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
- In the task pane, select Management | Settings
- Select the ZenPacks tab
- Click the drop-down and select Create a ZenPack
- 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.
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.