TECHZEN Zenoss User Community ARCHIVE  

Adding Locations to a ZenPack?

Subject: Adding Locations to a ZenPack?
Author: Andy Fleming
Posted: 2018-01-05 11:13

Just reaching out to see if anyone knows if I can add locations to a Zenpack?  Haven't found any info yet on if its possible and their is not an option in the GUI to do so.  

I guess in the end I should just use some sort of zendmd script?

------------------------------
Andy Fleming
KanREN - Kansas Research and Education Network
KS
------------------------------


Subject: RE: Adding Locations to a ZenPack?
Author: Jay Stanley
Posted: 2018-01-07 11:21

You could add it during the install step.


dmd.Locations.createOrganizer('TestLoc')

You can use the Microsoft ZP as an example oh how to use zpl, __init__.py and install() to do things during install/removal.

zenoss/ZenPacks.zenoss.Microsoft.Windows
GitHub remove preview
zenoss/ZenPacks.zenoss.Microsoft.Windows
ZenPacks.zenoss.Microsoft.Windows - Microsoft Windows ZenPack
View this on GitHub >


------------------------------
jstanley
------------------------------


< Previous
How to add extra permissions to Zen Operator role : skills1st.UserRoles ZenPack ...
  Next
REST API - Export CPU/Memory usage
>