[zenoss-zenpacks] How to add files to Zenpack to be copied locally at install

ejulson eric at haloadvantage.com
Mon Oct 29 11:44:24 EDT 2007


FYI...


-----Original Message-----
From: Chet Luther [mailto:cluther at zenoss.com]
To: Eric Julson
Subject: Re: How to add files to a Zenpack to be copied locally during installation?

Eric,

There is no way to get these files into the zCommandPath because we want to keep as much of the ZenPack as possible in its own directory. The best way to include custom scripts would be to put them in a libexec directory of your ZenPack, then reference them in your performance template like so:

    $$ZENHOME/Products/YourZenPackName/libexec/scriptname ...

The extra $ at the beginning will keep TALES from trying to evaluate it in the command template. You can see examples of this being done in the existing ApacheMonitor and MySqlMonitor ZenPacks.

Hope this helps! I'd like to get this information onto the zenoss-users list, but I don't want to reproduce your message without your permission. Would you mind posting this information to the list/forum?

Chet Luther
Client Services Engineer
cluther at zenoss.com


------ Forwarded Message
From: Eric Julson <eric at haloadvantage.com>
To: <community at zenoss.com>
Subject: How to add files to a Zenpack to be copied locally during installation?

Hello,

I'm trying to build a Zenpack with some performance templates and a few
custom scripts I've written.  My question is how do I go about adding
the files to the Zenpack so they will be copied to the zCommandPath
folder?  I've looked over the documentation, but I'm no good at Python
(not yet anyway) so most of it didn't make any sense and what I did
understand didn't seem to address this issue.


Any help would be appreciated.


Thanks,

Eric Julson
Halo Advantage
www.haloadvantage.com
515-991-3901




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=12408#12408

-------------------- m2f --------------------





More information about the zenoss-zenpacks mailing list